@Override
public void processTimer(MetricName name, Timer timer, Date context) throws Exception {
// Convert the timer's duration unit to a unit cloud watch understands if possible
TimeUnit recordedUnit = timer.durationUnit();
StandardUnit cloudWatchUnit;
TimeUnit sendUnit;
switch(recordedUnit) {
case MILLISECONDS:
cloudWatchUnit = StandardUnit.Milliseconds;
sendUnit = TimeUnit.MILLISECONDS;