MCPcopy Create free account
hub / github.com/ccusage/ccusage / duration_since

Method duration_since

rust/crates/ccusage/src/date_utils.rs:54–56  ·  view source on GitHub ↗
(self, earlier: Self)

Source from the content-addressed store, hash-verified

52 }
53
54 pub(crate) fn duration_since(self, earlier: Self) -> i64 {
55 self.0.saturating_sub(earlier.0)
56 }
57
58 pub(crate) fn floor_to_hour(self) -> Self {
59 Self(self.0.div_euclid(MILLIS_PER_HOUR) * MILLIS_PER_HOUR)

Callers 15

utc_nowFunction · 0.80
identify_session_blocksFunction · 0.80
create_blockFunction · 0.80
format_block_timeFunction · 0.80
calculate_burn_rateFunction · 0.80
project_block_usageFunction · 0.80
render_statuslineFunction · 0.80
transcript_mtime_msFunction · 0.80
now_millisFunction · 0.80
file_modified_timestampFunction · 0.80
file_modified_timestampFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected