MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test

Function test

test/emscripten_performance_now.c:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7double dateNow;
8
9void test(void *userData) {
10 double now2 = emscripten_performance_now();
11 assert(now2 >= performanceNow + 100);
12
13 double now3 = emscripten_date_now();
14 assert(now3 >= dateNow + 100);
15
16 printf("done\n");
17 exit(0);
18}
19
20int main() {
21 performanceNow = emscripten_performance_now();

Callers 1

mainFunction · 0.70

Calls 4

emscripten_date_nowFunction · 0.85
printfFunction · 0.85
assertFunction · 0.50
exitFunction · 0.50

Tested by

no test coverage detected