[ADDED] time counter functions