Function read [src]
Reads the timer value since start or the last reset in nanoseconds.
Prototype
pub fn read(self: *Timer) u64 Parameters
self: *Timer Source
pub fn read(self: *Timer) u64 {
const current = self.sample();
return current.since(self.started);
}