- added time_pause wrapper to control the pauses in the critical sections