我有一个计时器,我按以下方式设置:
long realTime = SystemClock.elapsedRealtime();
long time = alert.Created.getTime();
holder.timeChronometer.setBase(realTime - time);
holder.timeChronometer.start();
//alert.Created is a Date type, it's value is Thu Oct 30 12:41:45 CST 2014
问题在于计时器不完全按数字计算,它以字符计数。