-
-
Notifications
You must be signed in to change notification settings - Fork 9
sys ctime
IsaacShelton edited this page Apr 8, 2022
·
5 revisions
sys/ctime.adept
contains symbols from <time.h>
.
alias time_t = long
alias clock_t = long
packed struct tm (tm_sec, tm_min, tm_hour, tm_mday, tm_mon, tm_year, tm_wday, tm_yday, tm_isdst int)
define CLOCKS_PER_SEC = 1000
foreign clock() clock_t
foreign difftime(time_t, time_t) double
foreign mktime(*tm) time_t
foreign time(*time_t) time_t
foreign asctime(*tm) *ubyte
foreign ctime(*time_t) *ubyte
foreign gmtime(*time_t) *tm
foreign localtime(*time_t) *tm
foreign strftime(out *ubyte, usize, *ubyte, *tm) usize