Created
April 14, 2012 07:26
-
-
Save kmcallister/2382628 to your computer and use it in GitHub Desktop.
clock_gettime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -Wall -lrt -std=c99 -o foo foo.c | |
#define _POSIX_C_SOURCE 199309L | |
#include <time.h> | |
int main() { | |
struct timespec ts; | |
clock_gettime(CLOCK_MONOTONIC, &ts); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment