luaur_compile_cli/functions/
record_delta_time.rs1extern crate luaur_common;
2
3use luaur_common::functions::get_clock::get_clock;
4
5pub fn record_delta_time(timer: &mut f64) -> f64 {
6 let now = get_clock();
7 let delta = now - *timer;
8 *timer = now;
9 delta
10}