mariadb/linux/tests/test-gettime.c
Rich Prohaska 755bb35712 port perfnotes to windows. addresses #1246
git-svn-id: file:///svn/toku/tokudb.1032b@8046 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00

17 lines
300 B
C

#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <toku_time.h>
int main(void) {
int r;
struct timespec ts;
r = clock_gettime(CLOCK_REALTIME, &ts);
assert(r == 0);
sleep(10);
r = clock_gettime(CLOCK_REALTIME, &ts);
assert(r == 0);
return 0;
}