Did stuff.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user