#include int main() { timespec ts; // clock_gettime(clock_monotonic, &ts); // works on freebsd clock_gettime(clock_realtime, &ts); // works on linux }

0

#include int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux }

By Beginner Marian Wilkinson at Sep 01 2020


Related code examples


Code examples by languages