mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: run vfmt
This commit is contained in:
parent
c58b4cb1da
commit
82de973ee6
@ -79,7 +79,7 @@ fn linux_now() Time {
|
|||||||
mut ts := C.timespec{}
|
mut ts := C.timespec{}
|
||||||
C.clock_gettime(C.CLOCK_REALTIME, &ts)
|
C.clock_gettime(C.CLOCK_REALTIME, &ts)
|
||||||
loc_tm := C.tm{}
|
loc_tm := C.tm{}
|
||||||
C.localtime_r(&time.time_t(voidptr(&ts.tv_sec)), &loc_tm)
|
C.localtime_r(&time_t(voidptr(&ts.tv_sec)), &loc_tm)
|
||||||
return convert_ctime(loc_tm, int(ts.tv_nsec / 1000))
|
return convert_ctime(loc_tm, int(ts.tv_nsec / 1000))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user