Remove print statements - we should be using proper logging.
Fix tests by injecting time.
Simplify time rounding.