mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 01:41:44 +03:00
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
|
||
|
}
|