Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Clock test

View clocktest.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <time.h>
// #include <iostream>
// #include <errno.h>
 
int main()
{
struct timespec tp;
int status = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp);
// int errsv = errno;
 
//std::cout << tp.tv_sec << " " << tp.tv_nsec << std::endl;
//if(errsv==EINVAL)
// std::cout << "EINVAL" << std::endl;
return status;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.