mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
runtime: move timeUnit to a single place
The timeUnit is now the same type everywhere. Move it to a single place and add some documentation to it.
This commit is contained in:
committed by
Ron Evans
parent
abc373dc73
commit
41e501aaf4
@@ -61,8 +61,6 @@ func clock_gettime(clk_id int32, ts *timespec) {
|
||||
}
|
||||
}
|
||||
|
||||
type timeUnit int64
|
||||
|
||||
// Note: tv_sec and tv_nsec normally vary in size by platform. However, we're
|
||||
// using the time64 variant (see clock_gettime above), so the formats are the
|
||||
// same between 32-bit and 64-bit architectures.
|
||||
|
||||
Reference in New Issue
Block a user