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

Function test_time

src/core/unit_tests.cpp:2314–2324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2312}
2313
2314static void test_time()
2315{
2316 if (CROWN_PLATFORM_EMSCRIPTEN)
2317 return;
2318
2319 {
2320 s64 t = time::now();
2321 os::sleep(32);
2322 ENSURE(time::seconds(time::now() - t) >= 0.032);
2323 }
2324}
2325
2326static void test_expression_language()
2327{

Callers

nothing calls this directly

Calls 3

nowFunction · 0.85
secondsFunction · 0.85
sleepFunction · 0.70

Tested by

no test coverage detected