recorder the time when the event happed, and statistic it.