#pragma once #if __cplusplus extern "C" { #endif #include "std.h" #include "types.h" #include "errors.h" #include "mystr.h" // executes codeblock and prints execution time #ifdef CLOCK_REALTIME //non-standard high-precision clock #define optime(opname,repeats,codeblock) ({\ struct timespec start, stop;\ clock_gettime(CLOCK_REALTIME, &start);\ for(uint64 ___OPREP=0;___OPREP