luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
use crate::functions::lua_clock::lua_clock;

pub fn record_gc_delta_time(timer: &mut f64) -> f64 {
    let now = lua_clock();
    let delta = now - *timer;
    *timer = now;
    delta
}