Struct gloo_console::Timer [−][src]
pub struct Timer<'a> { /* fields omitted */ }
Expand description
A console time measurement.
See Timer::scope
for starting a labeled time measurement
of code wrapped in a closure.
Implementations
Starts a console time measurement. The measurement
ends when the constructed ConsoleTimer
object is dropped.
Example
use gloo_console::Timer;
let _timer = Timer::new("foo");