/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 vote229 views1 answer
- 0 vote223 views1 answer
- 0 vote259 views1 answer
- 0 vote210 views1 answer
- 4 votes235 views4 answers
- 0 vote215 views1 answer
- 1 vote224 views2 answers
- 0 vote241 views1 answer
- 0 vote224 views3 answers
- 1 vote226 views1 answer