6#ifndef SECP256K1_TESTS_COMMON_H
7#define SECP256K1_TESTS_COMMON_H
20#if (defined(_MSC_VER) && _MSC_VER >= 1900)
27#if (defined(_MSC_VER) && _MSC_VER >= 1900)
30 if (!timespec_get(&tv, TIME_UTC)) {
31 fputs(
"timespec_get failed!", stderr);
34 return (int64_t)tv.tv_nsec / 1000 + (int64_t)tv.tv_sec * 1000000LL;
37 gettimeofday(&tv, NULL);
38 return (int64_t)tv.tv_usec + (int64_t)tv.tv_sec * 1000000LL;
static int64_t gettime_i64(void)