timing.rs panic cleanup

This commit is contained in:
Jackson Sandland 2018-05-08 22:40:07 -07:00
parent 3236be7877
commit 658e787b60
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ pub fn duration_as_s(d: &Duration) -> f32 {
}
pub fn timestamp() -> u64 {
let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
let now = SystemTime::now().duration_since(UNIX_EPOCH).expect("failed to create timestamp");
return duration_as_ms(&now);
}