// Monitor the event occurrence time
Monitor the event occurrence time
// Monitor the event occurrence time
func Watch(tp int) {
	switch tp {
	case P2P:
		LastMsgTime = time.Now().Unix()
	case Event:
		LastEventTime = time.Now().Unix()
	case Block:
		LastBlockTime = time.Now().Unix()
	default:
		return
	}
}
func Watch ( tp int ) { switch tp { case P2P : LastMsgTime = time . Now ( ) . Unix ( ) case Event : LastEventTime = time . Now ( ) . Unix ( ) case Block : LastBlockTime = time . Now ( ) . Unix ( ) default : return } }
Monitor the event occurrence time
Monitor the event occurrence time