pub fn time_is_overdue(timeout: Timeout, start_time: i64) -> bool {
    let now = SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_secs() as i64;
    let max_time_ms: i64 = match timeout {
        Timeout::Call => CALLTIMEOUT,
        Timeout::Getter => GETTERTIMEOUT,
    };
    (now - start_time) * 1000 >= max_time_ms
}
/// Checks if the time of call execution or getter is overdue
/// Returns true if specified time is exceeded
Checks if the time of call execution or getter is overdue
Returns true if specified time is exceeded
Checks if the time of call execution or getter is overdue Returns true if specified time is exceeded
pub fn time_is_overdue(timeout: Timeout, start_time: i64) -> bool {
    let now = SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_secs() as i64;
    let max_time_ms: i64 = match timeout {
        Timeout::Call => CALLTIMEOUT,
        Timeout::Getter => GETTERTIMEOUT,
    };
    (now - start_time) * 1000 >= max_time_ms
}
pub fn time_is_overdue ( timeout : Timeout , start_time : i64 ) -> bool { let now = SystemTime :: now ( ) . duration_since ( UNIX_EPOCH ) . unwrap ( ) . as_secs ( ) as i64 ; let max_time_ms : i64 = match timeout { Timeout :: Call => CALLTIMEOUT , Timeout :: Getter => GETTERTIMEOUT , } ; ( now - start_time ) * 1000 >= max_time_ms }
Checks if the time of call execution or getter is overdue
Returns true if specified time is exceeded
Checks if the time of call execution or getter is overdue Returns true if specified time is exceeded
timeout
Timeout
start_time
i64
timeout
Timeout
start_time
i64