hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit bf9c87dc42e0366c4c118df8053fda83c72d1f21
parent 9dc6b14bb2629f500f3e87cacaff66abe0feef4a
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 28 Jun 2021 13:34:50 -0400

time: document clock type

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mtime/+linux/functions.ha | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/time/+linux/functions.ha b/time/+linux/functions.ha @@ -42,6 +42,11 @@ export fn sleep(n: duration) void = { }; }; +// An enumeration of clocks available on this system. Different clocks represent +// times from different epochs, and have different characteristics with regards +// to leap seconds, NTP adjustments, and so on. All systems provide the REALTIME +// and MONOTONIC clocks at least; use of other clocks is not guaranteed to be +// portable. export type clock = enum { // The current wall-clock time. This may jump forwards or backwards in // time to account for leap seconds, NTP adjustments, etc. @@ -56,8 +61,8 @@ export type clock = enum { // Measures CPU time consumed by the calling process. PROCESS_CPU = 2, - // Time since the system was booted. Increases monotonically and, - // unlike [MONOTONIC], continues to tick while the system is suspended. + // Time since the system was booted. Increases monotonically and, unlike + // [[MONOTONIC]], continues to tick while the system is suspended. BOOT = 7, };