MCPcopy Create free account
hub / github.com/Snapchat/Valdi / operator%

Function operator%

valdi_core/src/valdi_core/cpp/Utils/Duration.cpp:71–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71Duration operator%(const Duration& left, const Duration& right) {
72 return Duration(std::fmod(left.seconds(), right.seconds()));
73}
74
75std::ostream& operator<<(std::ostream& os, const Duration& value) {
76 return os << value.seconds() << "s";

Callers

nothing calls this directly

Calls 2

DurationClass · 0.70
secondsMethod · 0.45

Tested by

no test coverage detected