Implement java.util.concurrent.TimeUnit.

It is used by scala.util.concurrent.duration.Duration.