previa-runner 1.0.0-alpha.22

API for remote execution of integration and load tests via HTTP streaming (SSE).
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn now_ms() -> u64 {
    use std::time::{SystemTime, UNIX_EPOCH};
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .map(|d| d.as_millis() as u64)
        .unwrap_or(0)
}

pub fn round2(value: f64) -> f64 {
    (value * 100.0).round() / 100.0
}