Migrate timekeeping utility into CommonUtils