Copy-Paste Oriented Programming.
#include <ctime>
double GetTime() {
timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
return t.tv_sec + t.tv_nsec / 1e9;
}
Copy-Paste Oriented Programming.
#include <ctime>
double GetTime() {
timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
return t.tv_sec + t.tv_nsec / 1e9;
}