/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 vote187 views1 answer
- 0 vote197 views1 answer
- 0 vote189 views1 answer
- 0 vote213 views1 answer
- 1 vote195 views1 answer
- 0 vote191 views1 answer
- 0 vote191 views1 answer
- 0 vote220 views1 answer
- 0 vote189 views1 answer
- 2 votes188 views1 answer