Read and reset tick counter at each process stop instead of doing it lazily.
Task::wait and Task::resume_execution always succeed now.