time.h (401B)
1 #define TIME_BLOCK_EXEC(name, ...) do { \ 2 uint64_t start = rdtsc(); \ 3 __VA_ARGS__; \ 4 uint64_t end = rdtsc(); \ 5 printf("%s\t\t%lld\n", name, end - start); \ 6 } while(0);
c-programmingSimple C programs | |
| git clone git://git.laack.co/c-programming.git | |
| Log | Files | Refs |