File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SC::Time::HighResolutionCounter::HighResolutionCounter()
102
102
#endif
103
103
}
104
104
105
- void SC::Time::HighResolutionCounter::snap ()
105
+ SC::Time::HighResolutionCounter& SC::Time::HighResolutionCounter::snap ()
106
106
{
107
107
#if SC_PLATFORM_WINDOWS
108
108
LARGE_INTEGER performanceCounter;
@@ -121,6 +121,7 @@ void SC::Time::HighResolutionCounter::snap()
121
121
part1 = ts.tv_sec ;
122
122
part2 = ts.tv_nsec ;
123
123
#endif
124
+ return *this ;
124
125
}
125
126
126
127
SC::Time::HighResolutionCounter SC::Time::HighResolutionCounter::offsetBy (Milliseconds other) const
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ struct SC::Time::HighResolutionCounter
131
131
// / @n
132
132
// / Example:
133
133
// / @snippet Libraries/Time/Tests/TimeTest.cpp highResolutionCounterSnapSnippet
134
- void snap ();
134
+ HighResolutionCounter& snap ();
135
135
136
136
// / @brief Returns a HighResolutionCounter offset by a given number of Milliseconds
137
137
// / @param ms How many Milliseconds the returned HighResolutionCounter must be offset of
You can’t perform that action at this time.
0 commit comments