refactored rrd timer example