Code cleanup: use class name for timer name

This commit is contained in:
Jimmy Shih
2013-06-14 11:32:57 -07:00
parent 32f488be61
commit d558e8f507
2 changed files with 2 additions and 2 deletions
@@ -87,7 +87,7 @@ public abstract class SensorManager {
}
}
};
timer = new Timer("SensorManagerTimer");
timer = new Timer(SensorManager.class.getSimpleName());
timer.schedule(timerTask, RETRY_PERIOD, RETRY_PERIOD);
}
@@ -68,7 +68,7 @@ public class TimerTaskExecutor {
periodicTask.run(trackRecordingService);
}
};
timer = new Timer("TimerTaskExecutorTimer");
timer = new Timer(TimerTaskExecutor.class.getSimpleName());
long next = System.currentTimeMillis() + interval - (tripStatistics.getTotalTime() % interval);
timer.scheduleAtFixedRate(timerTask, new Date(next), interval);
}