krpc-common 0.2.0

RPC framework for service registration and discovery through API exposure, compatible with Dubbo3 protocol, intertunable with Java projects
Documentation
1
2
3
4
5
6
7
8
9
10
use std::time::{SystemTime, UNIX_EPOCH};


pub fn get_now_date_time_as_millis()-> i128 {
    let start = SystemTime::now();
    let since_the_epoch = start
        .duration_since(UNIX_EPOCH)
        .expect("Time went backwards");
   return since_the_epoch.as_millis() as i128;
}