MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / FormatTimeInMillisAsDuration

Function FormatTimeInMillisAsDuration

tests/gtest/src/gtest.cc:4551–4555  ·  view source on GitHub ↗

Formats the given time in milliseconds as seconds.

Source from the content-addressed store, hash-verified

4549
4550// Formats the given time in milliseconds as seconds.
4551static std::string FormatTimeInMillisAsDuration(TimeInMillis ms) {
4552 ::std::stringstream ss;
4553 ss << (static_cast<double>(ms) * 1e-3) << "s";
4554 return ss.str();
4555}
4556
4557// Converts the given epoch time in milliseconds to a date string in the
4558// RFC3339 format, without the timezone information.

Callers 4

OutputJsonTestInfoMethod · 0.70
PrintJsonTestSuiteMethod · 0.70
PrintJsonUnitTestMethod · 0.70

Calls 1

strMethod · 0.45

Tested by

no test coverage detected