mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 13:11:30 +03:00
ae2d4efc17
This may behave incorrectly when used with web workers
12 lines
458 B
JavaScript
12 lines
458 B
JavaScript
const support_system_clock_process_start_time = performance.now();
|
|
|
|
function support_system_clock_clockTimeProcess() {
|
|
return performance.now() - support_system_clock_process_start_time
|
|
}
|
|
|
|
function support_system_clock_clockTimeThread() {
|
|
// The JS backend currently doesn't support threads
|
|
// This may be possible with the WebWorkers api, if so change this implementation
|
|
return performance.now() - support_system_clock_process_start_time
|
|
}
|