Home
last modified time | relevance | path

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

/third_party/lz4/programs/
Dutil.h218 UTIL_STATIC U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro() argument
227 return 1000000ULL*(clockEnd.QuadPart - clockStart.QuadPart)/ticksPerSecond.QuadPart; in UTIL_getSpanTimeMicro()
229 UTIL_STATIC U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano() argument
238 return 1000000000ULL*(clockEnd.QuadPart - clockStart.QuadPart)/ticksPerSecond.QuadPart; in UTIL_getSpanTimeNano()
246 UTIL_STATIC U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeMicro() argument
254 return (((clockEnd - clockStart) * (U64)rate.numer) / ((U64)rate.denom)) / 1000ULL; in UTIL_getSpanTimeMicro()
256 UTIL_STATIC U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) in UTIL_getSpanTimeNano() argument
264 return ((clockEnd - clockStart) * (U64)rate.numer) / ((U64)rate.denom); in UTIL_getSpanTimeNano()
311 …64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000ULL * (cloc… in UTIL_getSpanTimeMicro() argument
312 …64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000000ULL * (cl… in UTIL_getSpanTimeNano() argument
[all …]
Dbench.c456 UTIL_time_t const clockStart = UTIL_getTime(); in BMK_benchMem() local
469 { U64 const clockSpan = UTIL_clockSpanNano(clockStart); in BMK_benchMem()
506 UTIL_time_t const clockStart = UTIL_getTime(); in BMK_benchMem() local
530 { U64 const clockSpan = UTIL_clockSpanNano(clockStart); in BMK_benchMem()
Dlz4io.c427 clock_t const clockStart = clock(); in LZ4IO_compressFilename_Legacy() local
475 clockEnd += (clockEnd==clockStart); /* avoid division by zero (speed) */ in LZ4IO_compressFilename_Legacy()
480 { 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.c105 static clock_t FUZ_GetClockSpan(clock_t clockStart) in FUZ_GetClockSpan() argument
107 return clock() - clockStart; /* works even if overflow; max span ~ 30mn */ in FUZ_GetClockSpan()
334 clock_t const clockStart = clock(); in FUZ_test() local
373 (cycleNb < nbCycles) || (FUZ_GetClockSpan(clockStart) < clockDuration); in FUZ_test()
Dframetest.c157 static clock_t FUZ_GetClockSpan(clock_t clockStart) in FUZ_GetClockSpan() argument
159 return clock() - clockStart; /* works even if overflow; max span ~ 30 mn */ in FUZ_GetClockSpan()