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

Method checked_sub_millis

rust/crates/ccusage/src/date_utils.rs:50–52  ·  view source on GitHub ↗
(self, millis: i64)

Source from the content-addressed store, hash-verified

48 }
49
50 pub(crate) fn checked_sub_millis(self, millis: i64) -> Option<Self> {
51 self.0.checked_sub(millis).map(Self)
52 }
53
54 pub(crate) fn duration_since(self, earlier: Self) -> i64 {
55 self.0.saturating_sub(earlier.0)

Callers 2

parse_ts_timestampFunction · 0.80
run_blocksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected