blob: 729e26f16c57c465bd07f433af7ef8d2e3869bc6 (
plain)
1
2
3
4
5
6
7
8
9
|
#include "time.h"
#include <bits/time.h>
#include <time.h>
Clock getTimeInNano(){
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
return t.tv_sec*1000000000+t.tv_nsec;
}
|