You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Returns the highest-precision representation of the current time that the browser provides.
166
+
//This uses either Date.now or performance.now. The result is not an absolute time, and is only meaningful in comparison to other calls to this function.
167
+
doublenow=emscripten_get_now();
168
+
uint64_ttime_component= (uint64_t)now;
169
+
170
+
// Initialize a random component based on current time
171
+
srand((unsigned)time(NULL));
172
+
uint64_trandom_component= (uint64_t)rand();
173
+
174
+
// Use the address of a local volatile variable as a platform-specific value
0 commit comments