MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / offsetBy

Method offsetBy

Libraries/Time/Time.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109SC::Time::Absolute SC::Time::Absolute::offsetBy(Milliseconds other) const
110{
111 constexpr int64_t maxValue = INT64_MAX;
112 if (milliseconds > maxValue - other.ms)
113 {
114 return Time::Absolute(maxValue);
115 }
116 return Time::Absolute(milliseconds + other.ms);
117}
118
119SC::Time::HighResolutionCounter::HighResolutionCounter()
120{

Calls 1

AbsoluteClass · 0.85