Idris2/support/js/support_system_clock.js

12 lines
458 B
JavaScript
Raw Normal View History

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
}