An abstraction for a time provider service.