3 seconds, ticks, fastticks, HZ, MS2HZ, MS2TK, TK2MS, TK2SEC \- kernel times and time conversions
10 vlong fastticks(uvlong *hz)
14 #define MS2HZ (1000/HZ)
15 #define TK2SEC(t) ((t)/HZ)
16 #define TK2MS(t) ((t)*(1000/HZ))
20 returns the system's idea of the current time as the number of seconds
21 since the start of the epoch
22 (00:00:00 GMT, January 1, 1970).
28 structure returns the number of system-dependent clock ticks on the
29 given processor since system boot.
32 is sometimes used to provide a reference time, since the tick value
33 might vary slightly across processors.
36 returns the number of ticks since boot as measured by the
37 fastest clock provided by the platform.
38 The frequency of the clock, in ticks per second,
43 The system clock frequencies are platform-dependent.
44 Several symbolic constants and macro functions are defined by
47 to convert between different time units:
52 The number of clock ticks per second.
55 Milliseconds per clock tick.
60 clock ticks to seconds (truncating not rounding).
65 clock ticks to milliseconds.
69 .B /sys/src/9/*/clock.c
71 .B /sys/src/9/*/devarch.c
73 .B /sys/src/9/*/timer.c
75 .B /sys/src/9/port/tod.c