Searched refs:PTime (Results 1 – 4 of 4) sorted by relevance
42 r.t = (PTime)(x.QuadPart * 1000000000ULL / ticksPerSecond.QuadPart); in UTIL_getTime()61 r.t = mach_absolute_time() * (PTime)rate.numer / (PTime)rate.denom; in UTIL_getTime()82 r.t = (PTime)time.tv_sec * 1000000000ULL + (PTime)time.tv_nsec; in UTIL_getTime()109 r.t = (PTime)time.tv_sec * 1000000000ULL + (PTime)time.tv_nsec; in UTIL_getTime()120 r.t = (PTime)clock() * 1000000000ULL / CLOCKS_PER_SEC; in UTIL_getTime()130 PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano()135 PTime UTIL_getSpanTimeMicro(UTIL_time_t begin, UTIL_time_t end) in UTIL_getSpanTimeMicro()140 PTime UTIL_clockSpanMicro(UTIL_time_t clockStart ) in UTIL_clockSpanMicro()146 PTime UTIL_clockSpanNano(UTIL_time_t clockStart ) in UTIL_clockSpanNano()
24 typedef uint64_t PTime; /* Precise Time */ typedef26 typedef unsigned long long PTime; /* does not support compilers without long long support */ typedef32 typedef struct { PTime t; } UTIL_time_t;51 PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd);52 PTime UTIL_clockSpanNano(UTIL_time_t clockStart);54 PTime UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd);55 PTime UTIL_clockSpanMicro(UTIL_time_t clockStart);57 #define SEC_TO_MICRO ((PTime)1000000) /* nb of microseconds in a second */
80 static void TRACE_log(char const* method, PTime duration, ZSTD_Trace const* trace) in TRACE_log()137 PTime const beginNanos = (PTime)ctx; in ZSTD_trace_compress_end()138 PTime const endNanos = UTIL_clockSpanNano(g_enableTime); in ZSTD_trace_compress_end()139 PTime const durationNanos = endNanos > beginNanos ? endNanos - beginNanos : 0; in ZSTD_trace_compress_end()155 PTime const beginNanos = (PTime)ctx; in ZSTD_trace_decompress_end()156 PTime const endNanos = UTIL_clockSpanNano(g_enableTime); in ZSTD_trace_decompress_end()157 PTime const durationNanos = endNanos > beginNanos ? endNanos - beginNanos : 0; in ZSTD_trace_decompress_end()
140 { PTime const totalTime = UTIL_clockSpanNano(clockStart); in BMK_benchFunction()152 PTime timeSpent_ns;153 PTime timeBudget_ns;154 PTime runBudget_ns;190 timedFnState->timeBudget_ns = (PTime)total_ms * TIMELOOP_NANOSEC / 1000; in BMK_resetTimedFnState()191 timedFnState->runBudget_ns = (PTime)run_ms * TIMELOOP_NANOSEC / 1000; in BMK_resetTimedFnState()214 PTime const runBudget_ns = cont->runBudget_ns; in BMK_benchTimedFn()215 PTime const runTimeMin_ns = runBudget_ns / 2; in BMK_benchTimedFn()