corund 0.2.0

Portable auth server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::time::{SystemTime, UNIX_EPOCH};

pub type Time = f64;

pub fn utc() -> Time {
    let time = SystemTime::now();
    time.duration_since(UNIX_EPOCH).unwrap().as_secs_f64()
}

pub fn delta(d: Time) -> Time {
    let time = utc();
    time + d
}