gritpack-searchlib 0.1.0

Compiler-facing resolver and grammar integration surface for Gritpack
Documentation
1
2
3
4
5
6
7
8
use std::time::{SystemTime, UNIX_EPOCH};

pub(crate) fn unix_now() -> u64 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap_or_default()
        .as_secs()
}