lune/tests/ffi/utility/proc_clock/lib.c

12 lines
222 B
C

#include <time.h>
clock_t get_clock() {
return clock();
}
int sizeof_clock() {
return sizeof(clock_t);
}
double get_offset(clock_t before, clock_t after) {
return (double)(after - before) / CLOCKS_PER_SEC;
}