Custom consumption widget is operational

This commit is contained in:
2024-06-30 23:04:04 +02:00
parent 1f14cf8212
commit 8918547375
6 changed files with 33 additions and 0 deletions

@ -0,0 +1,10 @@
use std::time::{SystemTime, UNIX_EPOCH};
/// Get the current time since epoch
pub fn time_millis() -> u128 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_millis()
}