MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / time

Method time

barretenberg/cpp/src/barretenberg/vm2/tooling/stats.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void Stats::time(const std::string& key, const std::function<void()>& f)
28{
29 auto start = std::chrono::system_clock::now();
30 f();
31 auto elapsed = std::chrono::system_clock::now() - start;
32 increment(key + "_ms",
33 static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::milliseconds>(elapsed).count()));
34}
35
36std::string Stats::to_string(int depth) const
37{

Callers 14

sync_ci_runs_to_sqliteFunction · 0.80
_ensure_prsFunction · 0.80
_ensure_deploysFunction · 0.80
_ensure_lagFunction · 0.80
ensure_merge_queue_dataFunction · 0.80
_refresh_cacheFunction · 0.80
mainFunction · 0.80
_refresh_sku_pricingFunction · 0.80
_ensure_cachedFunction · 0.80
_ensure_cachedFunction · 0.80
_ensure_detail_cachedFunction · 0.80

Calls 3

nowFunction · 0.85
fFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected