Function now_ms

Source
pub fn now_ms() -> u128
Expand description

Returns Unix epoch time in whole milliseconds.

Times before the epoch and system-clock errors conservatively return zero. The value is wall-clock time and is not monotonic.

ยงExamples

use ailloli_ui_render_wgpu::passes::now_ms;
let timestamp: u128 = now_ms();
assert!(timestamp > 0);