Call timer.record() with a timeunit
fix warnings