diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/2/sys-millisec | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/2/sys-millisec')
| -rw-r--r-- | man/2/sys-millisec | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/man/2/sys-millisec b/man/2/sys-millisec new file mode 100644 index 00000000..d8e7d0bb --- /dev/null +++ b/man/2/sys-millisec @@ -0,0 +1,24 @@ +.TH SYS-MILLISEC 2 +.SH NAME +millisec \- millisecond timer +.SH SYNOPSIS +.EX +include "sys.m"; +sys := load Sys Sys->PATH; + +millisec: fn(): int; +.EE +.SH DESCRIPTION +.B Millisec +returns the value of an internal system clock, in milliseconds. +The actual resolution of the clock is a property of the underlying +system and may be coarser than a millisecond. +The epoch is arbitrary, so +.B millisec +is useful for measuring durations but not absolute time. +If the system operates continuously, the millisecond counter overflows +every few months; +a reboot resets the epoch. +.SH SEE ALSO +.IR sys-intro (2), +.IR sys-sleep (2) |
