do not update time in the timer signal handler, since localtime_r() is not Async-Signal-Safe function