mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-01 09:59:59 -07:00
global: snapshot
This commit is contained in:
@@ -2,8 +2,6 @@ use std::time::Instant;
|
||||
|
||||
use crate::utils::log;
|
||||
|
||||
use super::ONE_DAY_IN_S;
|
||||
|
||||
pub fn time<F, T>(name: &str, function: F) -> T
|
||||
where
|
||||
F: FnOnce() -> T,
|
||||
@@ -16,11 +14,3 @@ where
|
||||
|
||||
returned
|
||||
}
|
||||
|
||||
pub fn difference_in_days_between_timestamps(older: u32, younger: u32) -> u32 {
|
||||
if younger <= older {
|
||||
0
|
||||
} else {
|
||||
(younger - older) / ONE_DAY_IN_S as u32
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user