mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Change period in lperf.cpp
This commit is contained in:
parent
2415278efe
commit
1226684229
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ static double clock_period()
|
||||||
mach_timebase_info_data_t result = {};
|
mach_timebase_info_data_t result = {};
|
||||||
mach_timebase_info(&result);
|
mach_timebase_info(&result);
|
||||||
return double(result.numer) / double(result.denom) * 1e-9;
|
return double(result.numer) / double(result.denom) * 1e-9;
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||||
return 1e-9;
|
return 1e-9;
|
||||||
#else
|
#else
|
||||||
return 1.0 / double(CLOCKS_PER_SEC);
|
return 1.0 / double(CLOCKS_PER_SEC);
|
||||||
|
|
Loading…
Add table
Reference in a new issue