是否需要显示时间,相差2分钟
static bool needShowTime(int sentTime1, int sentTime2) { return (sentTime1 - sentTime2).abs() > 2 * 60 * 1000; }