In C, is there a way to start a timer using setitimer, then pause it, and then resume the timer with the remaining time when it was paused? My initial thought was to save the time left with getitimer, stop the timer, then set the timer back to the saved value in getitimer, but that doesn't seem to work.
source
share