MCPcopy Create free account
hub / github.com/crownengine/crown / frequency

Function frequency

src/core/time.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 inline s64 frequency()
41 {
42#if CROWN_PLATFORM_WINDOWS
43 LARGE_INTEGER freq;
44 QueryPerformanceFrequency(&freq);
45 return (s64)freq.QuadPart;
46#elif CROWN_PLATFORM_OSX
47 return s64(1000000);
48#else
49 return s64(1000000000);
50#endif
51 }
52
53 f64 seconds(s64 ticks)
54 {

Callers 1

secondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected