ulong ticks(void)
#define HZ ... #define MS2HZ(t) ... #define TK2SEC(t) ... #define TK2MS(t) ... #define MS2TK(m) ...
Ticks returns the number of system-dependent clock ticks since system boot.
The system clock frequency is platform-dependent. Several symbolic constants and macro functions are defined by the file mem.h to convert between different time units:
The functions are often used to calculate delays for timing functions, for instance:
if(atactlrwait(dp->cp, DHmagic, 0, MS2TK(100))){ ... }
SECONDS(10.2 ) | Rev: Tue Mar 31 02:42:39 GMT 2015 |