tested timekeeping code