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

Method total

rust/crates/ccusage/src/types.rs:84–90  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

82 }
83
84 pub(crate) fn total(&self) -> u64 {
85 self.input_tokens
86 + self.output_tokens
87 + self.cache_creation_tokens
88 + self.cache_read_tokens
89 + self.extra_total_tokens
90 }
91}
92
93#[derive(Debug, Clone, Default, Serialize)]

Callers 5

print_blocks_tableFunction · 0.80
calculate_burn_rateFunction · 0.80
project_block_usageFunction · 0.80
run_blocksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected