Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Clock test
#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;
// 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