Skip to main content

luau_vm/
perf.rs

1use minstant::Instant;
2use std::sync::OnceLock;
3
4pub fn clock() -> f64 {
5    static START: OnceLock<Instant> = OnceLock::new();
6
7    START.get_or_init(Instant::now).elapsed().as_secs_f64()
8}