code-scanner-driver 0.1.1

Driver for barcode scanners and keyboard input with GTIN validation, async streaming, and burst detection.
Documentation
1
2
3
4
5
6
7
8
use std::time::{SystemTime, UNIX_EPOCH};

pub fn now_ms() -> u128 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_millis()
}