Source

criterion / cbits / time-posix.c

The default branch has multiple heads

Full commit
#include <time.h>

void criterion_inittime(void)
{
}

double criterion_gettime(void)
{
    struct timespec ts;

    clock_gettime(CLOCK_MONOTONIC, &ts);

    return ts.tv_sec + ts.tv_nsec * 1e-9;
}