Did stuff.

This commit is contained in:
2017-02-03 10:00:07 +01:00
parent 8178b415ae
commit ec42cb33e0
13 changed files with 277 additions and 111 deletions

View File

@@ -1,14 +1,12 @@
use std::time::Instant;
pub struct Timer {
time: Instant
time: Instant,
}
impl Timer {
pub fn new() -> Timer {
Timer {
time: Instant::now()
}
Timer { time: Instant::now() }
}
pub fn current_time(&self) -> f64 {