mirror of
https://github.com/facebook/zstd.git
synced 2025-08-05 19:15:58 +03:00
Address most comments
This commit is contained in:
@@ -326,7 +326,9 @@ int g_utilDisplayLevel;
|
|||||||
* Time functions
|
* Time functions
|
||||||
******************************************/
|
******************************************/
|
||||||
#if defined(_WIN32) /* Windows */
|
#if defined(_WIN32) /* Windows */
|
||||||
|
|
||||||
UTIL_time_t UTIL_getTime(void) { UTIL_time_t x; QueryPerformanceCounter(&x); return x; }
|
UTIL_time_t UTIL_getTime(void) { UTIL_time_t x; QueryPerformanceCounter(&x); return x; }
|
||||||
|
|
||||||
U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
U64 UTIL_getSpanTimeMicro(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
||||||
{
|
{
|
||||||
static LARGE_INTEGER ticksPerSecond;
|
static LARGE_INTEGER ticksPerSecond;
|
||||||
@@ -427,8 +429,6 @@ int g_utilDisplayLevel;
|
|||||||
U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000000ULL * (clockEnd - clockStart) / CLOCKS_PER_SEC; }
|
U64 UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd) { return 1000000000ULL * (clockEnd - clockStart) / CLOCKS_PER_SEC; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SEC_TO_MICRO 1000000
|
|
||||||
|
|
||||||
/* returns time span in microseconds */
|
/* returns time span in microseconds */
|
||||||
U64 UTIL_clockSpanMicro(UTIL_time_t clockStart )
|
U64 UTIL_clockSpanMicro(UTIL_time_t clockStart )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user