25#if defined(CLOCK_MONOTONIC) && !defined(_WIN32)
27 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
28 ms = (int64_t)ts.tv_sec * 1000 + (int64_t)(ts.tv_nsec / 1000000);
30 time_t
s = time(NULL);
31 ms = (int64_t)
s * 1000;
34 time_t
s = time(NULL);
35 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.