luaur-compile-cli 0.1.2

Command-line Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate luaur_common;

use luaur_common::functions::get_clock::get_clock;

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