stratum-server 5.7.5

The server code for the Rust Stratum implementation
Documentation
1
2
3
4
5
6
7
8
9
10
use std::time::{SystemTime, UNIX_EPOCH};

pub fn now() -> u128 {
    let start = SystemTime::now();
    let since_the_epoch = start
        .duration_since(UNIX_EPOCH)
        .expect("Time went backwards");

    since_the_epoch.as_millis()
}