MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / FormatUnits

Function FormatUnits

DebugView++/MainFrame.cpp:280–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280std::wstring FormatUnits(int n, const std::wstring& unit)
281{
282 if (n == 0)
283 return L"";
284 if (n == 1)
285 return wstringbuilder() << n << " " << unit;
286 return wstringbuilder() << n << " " << unit << "s";
287}
288
289std::wstring FormatDuration(double seconds)
290{

Callers 1

FormatDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected