diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-15 15:56:43 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-15 15:56:43 +0100 |
commit | 916b27d87ec7f5bff41f9dd888914d50ae067fc0 (patch) | |
tree | 68b94498bf0fed5b7abf6d4b7e4d1f2ddbbb80f4 /src/time.rs | |
parent | 652da6efd35f198289ba3de26b60eb2e228de73a (diff) | |
download | aerogramme-916b27d87ec7f5bff41f9dd888914d50ae067fc0.tar.gz aerogramme-916b27d87ec7f5bff41f9dd888914d50ae067fc0.zip |
WIP refactor storage (new timestamp.rs file)
Diffstat (limited to 'src/time.rs')
-rw-r--r-- | src/time.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/time.rs b/src/time.rs deleted file mode 100644 index d34ee22..0000000 --- a/src/time.rs +++ /dev/null @@ -1,9 +0,0 @@ -use std::time::{SystemTime, UNIX_EPOCH}; - -/// Returns milliseconds since UNIX Epoch -pub fn now_msec() -> u64 { - SystemTime::now() - .duration_since(UNIX_EPOCH) - .expect("Fix your clock :o") - .as_millis() as u64 -} |