code: public static final void setCurrentMillisProvider(MillisProvider millisProvider) throws SecurityException {
          if (millisProvider == null) {
              throw new IllegalArgumentException("The MillisProvider must not be null");
          }
          checkPermission();
          cMillisProvider = millisProvider;
      }
docs: Sets the provider of the current time to class specified.
  <p>
  This method changes the behaviour of {@link #currentTimeMillis()}.
  Whenever the current time is queried, the specified class will be called.
  
  @param millisProvider  the provider of the current time to use, not null
  @throws SecurityException if the application does not have sufficient security rights
  @since 2.0