/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
- 2 votes136 views1 answer
- 0 vote128 views1 answer
- 0 vote116 views1 answer
- 0 vote107 views5 answers
- 35 votes237 views5 answers
- 0 vote116 views1 answer
- 0 vote126 views1 answer
- 2 votes111 views5 answers
- 0 vote108 views1 answer
- 0 vote115 views1 answer