toaruos/libc/time/clock.c

9 lines
141 B
C
Raw Normal View History

2018-06-25 06:11:33 +03:00
#include <time.h>
#include <sys/times.h>
2018-06-25 06:11:33 +03:00
2018-06-25 07:15:09 +03:00
clock_t clock(void) {
struct tms timeValues;
times(&timeValues);
return timeValues.tms_utime;
2018-06-25 06:11:33 +03:00
}