MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / FormatTimeInMillisAsDuration

Function FormatTimeInMillisAsDuration

tests/gtest/gtest-all.cc:5541–5545  ·  view source on GitHub ↗

Formats the given time in milliseconds as seconds.

Source from the content-addressed store, hash-verified

5539
5540// Formats the given time in milliseconds as seconds.
5541static std::string FormatTimeInMillisAsDuration(TimeInMillis ms) {
5542 ::std::stringstream ss;
5543 ss << (static_cast<double>(ms) * 1e-3) << "s";
5544 return ss.str();
5545}
5546
5547// Converts the given epoch time in milliseconds to a date string in the
5548// RFC3339 format, without the timezone information.

Callers 3

OutputJsonTestInfoMethod · 0.85
PrintJsonTestSuiteMethod · 0.85
PrintJsonUnitTestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected