add time counter

known issue:
1. the time counter may not correct after leave activity.