MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator-

Method operator-

src/fl/stl/chrono.h:160–162  ·  view source on GitHub ↗

Subtract two time_points to get a duration

Source from the content-addressed store, hash-verified

158
159 /// Subtract two time_points to get a duration
160 constexpr Duration operator-(const time_point& rhs) const FL_NOEXCEPT {
161 return Duration(mDuration.count() - rhs.mDuration.count());
162 }
163
164 /// Add a duration to a time_point
165 constexpr time_point operator+(const Duration& d) const FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 2

time_pointClass · 0.70
countMethod · 0.45

Tested by

no test coverage detected