/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 vote117 views1 answer
- 0 vote116 views1 answer
- 0 vote103 views1 answer
- 1 vote110 views2 answers
- 5 votes203 views2 answers
- 1 vote103 views1 answer
- -1 vote108 views1 answer
- 0 vote115 views1 answer
- 0 vote84 views1 answer
- 4 votes200 views3 answers