add counting time in simulate