Home
last modified time | relevance | path

Searched refs:clockStart (Results 1 – 6 of 6) sorted by relevance

/third_party/lz4/programs/
Dutil.h185 UTIL_STATIC U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro() argument
194 return 1000000ULL*(clockEnd.QuadPart - clockStart.QuadPart)/ticksPerSecond.QuadPart; in UTIL_getSpanTimeMicro()
196 UTIL_STATIC U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano() argument
205 return 1000000000ULL*(clockEnd.QuadPart - clockStart.QuadPart)/ticksPerSecond.QuadPart; in UTIL_getSpanTimeNano()
213 UTIL_STATIC U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro() argument
221 return (((clockEnd - clockStart) * (U64)rate.numer) / ((U64)rate.denom)) / 1000ULL; in UTIL_getSpanTimeMicro()
223 UTIL_STATIC U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano() argument
231 return ((clockEnd - clockStart) * (U64)rate.numer) / ((U64)rate.denom); in UTIL_getSpanTimeNano()
278 …64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000ULL * (cloc… in UTIL_getSpanTimeMicro() argument
279 …64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000000ULL * (cl… in UTIL_getSpanTimeNano() argument
[all …]
Dbench.c401 UTIL_time_t const clockStart = UTIL_getTime(); in BMK_benchMem() local
414 { U64 const clockSpan = UTIL_clockSpanNano(clockStart); in BMK_benchMem()
446 UTIL_time_t const clockStart = UTIL_getTime(); in BMK_benchMem() local
461 { U64 const clockSpan = UTIL_clockSpanNano(clockStart); in BMK_benchMem()
Dlz4io.c414 clock_t const clockStart = clock(); in LZ4IO_compressFilename_Legacy() local
462 if (clockEnd==clockStart) clockEnd+=1; /* avoid division by zero (speed) */ in LZ4IO_compressFilename_Legacy()
467 { double const seconds = (double)(clockEnd - clockStart) / CLOCKS_PER_SEC; in LZ4IO_compressFilename_Legacy()
/third_party/lz4/tests/
Dfullbench.c128 static clock_t BMK_GetClockSpan( clock_t clockStart ) in BMK_GetClockSpan() argument
130 return clock() - clockStart; /* works even if overflow; max span ~30 mn */ in BMK_GetClockSpan()
Dfuzzer.c104 static clock_t FUZ_GetClockSpan(clock_t clockStart) in FUZ_GetClockSpan() argument
106 return clock() - clockStart; /* works even if overflow; max span ~ 30mn */ in FUZ_GetClockSpan()
333 clock_t const clockStart = clock(); in FUZ_test() local
372 (cycleNb < nbCycles) || (FUZ_GetClockSpan(clockStart) < clockDuration); in FUZ_test()
Dframetest.c107 static clock_t FUZ_GetClockSpan(clock_t clockStart) in FUZ_GetClockSpan() argument
109 return clock() - clockStart; /* works even if overflow; max span ~ 30 mn */ in FUZ_GetClockSpan()