Add code for time statistics