MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / ToString

Method ToString

lib/utils/duration.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133std::string Duration::ToString() const
134{
135 std::ostringstream ss;
136 ss << std::fixed << std::setprecision(2) << _value.GetValue() << " "
137 << durationUnitToString(_unit);
138 if (!_value.IsFixedType()) {
139 ss << " [" << GetWeakVariableName(_value.GetVariable()) << "]";
140 }
141 return ss.str();
142}
143
144// TODO: Remove the code below
145// Only used for backwards compatibility

Callers 5

initializePageMethod · 0.45
initializePageMethod · 0.45
makeExtendTextFunction · 0.45
catch.hppFile · 0.45

Calls 6

durationUnitToStringFunction · 0.85
GetWeakVariableNameFunction · 0.85
GetValueMethod · 0.80
IsFixedTypeMethod · 0.80
GetVariableMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected