1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: complete doc (#8070)

This commit is contained in:
crthpl
2021-01-13 06:30:54 -08:00
committed by GitHub
parent 204cc5fb01
commit 70ad49e186
7 changed files with 39 additions and 12 deletions

View File

@@ -44,6 +44,7 @@ mut:
// the first arg is defined in include/bits/types.h as `__S32_TYPE`, which is `int`
fn C.clock_gettime(int, &C.timespec)
// sys_mono_now returns a *monotonically increasing time*, NOT a time adjusted for daylight savings, location etc.
pub fn sys_mono_now() u64 {
$if macos {
return sys_mono_now_darwin()