plinth-util 0.1.0

Utility functions for the Plinth stack.
Documentation
1
2
3
4
5
use web_sys::window;

pub fn now() -> f64 {
    window().unwrap().performance().unwrap().now()
}