Home
last modified time | relevance | path

Searched refs:PTime (Results 1 – 3 of 3) sorted by relevance

/external/zstd/programs/
Dtimefn.c28 PTime UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro()
42 PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano()
62 PTime UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro()
70 return (((clockEnd - clockStart) * (PTime)rate.numer) / ((PTime)rate.denom))/1000ULL; in UTIL_getSpanTimeMicro()
73 PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano()
81 return ((clockEnd - clockStart) * (PTime)rate.numer) / ((PTime)rate.denom); in UTIL_getSpanTimeNano()
118 PTime UTIL_getSpanTimeMicro(UTIL_time_t begin, UTIL_time_t end) in UTIL_getSpanTimeMicro()
121 PTime micro = 0; in UTIL_getSpanTimeMicro()
127 PTime UTIL_getSpanTimeNano(UTIL_time_t begin, UTIL_time_t end) in UTIL_getSpanTimeNano()
130 PTime nano = 0; in UTIL_getSpanTimeNano()
[all …]
Dtimefn.h36 typedef uint64_t PTime; /* Precise Time */ typedef
38 typedef unsigned long long PTime; /* does not support compilers without long long support */
55 typedef PTime UTIL_time_t;
75 PTime UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd);
76 PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd);
78 #define SEC_TO_MICRO ((PTime)1000000)
79 PTime UTIL_clockSpanMicro(UTIL_time_t clockStart);
80 PTime UTIL_clockSpanNano(UTIL_time_t clockStart);
Dbenchfn.c140 { 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()