Class ShadowPausedSystemClock

    • Constructor Detail

      • ShadowPausedSystemClock

        public ShadowPausedSystemClock()
    • Method Detail

      • sleep

        protected static void sleep​(long millis)
        Advances the current time by given millis, without sleeping the current thread/
      • setCurrentTimeMillis

        protected static boolean setCurrentTimeMillis​(long millis)
        Sets the current wall time.

        Currently does not perform any permission checks.

        false if specified time is less than current time.
      • elapsedRealtime

        protected static long elapsedRealtime()
      • currentThreadTimeMillis

        protected static long currentThreadTimeMillis()
      • reset

        public static void reset()