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:
Ayke van Laethem
2025-04-12 12:54:06 +02:00
committed by Ron Evans
parent abc373dc73
commit 41e501aaf4
27 changed files with 13 additions and 58 deletions
-3
View File
@@ -12,9 +12,6 @@ import (
const BOARD = "arduino"
// timeUnit in nanoseconds
type timeUnit int64
// Watchdog timer periods. These can be off by a large margin (hence the jump
// between 64ms and 125ms which is not an exact double), so don't rely on this
// for accurate time keeping.