23#if defined(CLOCK_MONOTONIC) && !defined(_WIN32) 25 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
26 ms = (int64_t)ts.tv_sec * 1000 + (int64_t)(ts.tv_nsec / 1000000);
28 time_t
s = time(NULL);
29 ms = (int64_t)
s * 1000;
32 time_t
s = time(NULL);
33 ms = (int64_t)
s * 1000;
push_value(vm, make_int(ms))
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.