MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / format_time_short

Function format_time_short

examples/benchmark.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static std::string format_time_short(double ms) {
88 if (ms < 0) return " -";
89 char buf[32];
90 snprintf(buf, sizeof(buf), "%.1f", ms);
91 return buf;
92}
93
94static bool ends_with(const std::string & s, const std::string & suffix) {
95 if (suffix.size() > s.size()) return false;

Callers 1

print_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected