/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
- 1 vote193 views1 answer
- 0 vote203 views1 answer
- 0 vote191 views1 answer
- 1 vote212 views4 answers
- 2 votes203 views1 answer
- 1 vote214 views1 answer
- 3 votes207 views8 answers
- 3 votes191 views1 answer
- 0 vote216 views1 answer
- 0 vote193 views1 answer