A pausable monotonic stopwatch, with no native SFML handle.
Create a clock that starts immediately, or copy source's current starting point and paused state.
source
Optional
Return accumulated running time, excluding time paused with stop().
Return whether the clock is running.
Clear and pause timing, returning the previous accumulated running time.
this
Clear and start timing, returning the previous accumulated running time.
Resume timing, preserving accumulated time; do nothing if already running.
Pause timing, preserving accumulated time.
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
A pausable monotonic stopwatch, with no native SFML handle.