/C/#include <sys/time.h> int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux }
#include <sys/time.h> int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux }
#include int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux }
0
Source: stackoverflow.com
- 0 vote108 views1 answer
- 0 vote181 views1 answer
- 0 vote107 views1 answer
- 0 vote146 views2 answers
- 56 votes221 views3 answers
- -2 votes110 views1 answer
- 0 vote108 views1 answer
- 0 vote101 views1 answer
- 1 vote113 views1 answer
- 0 vote112 views1 answer