Package org.robolectric.shadows
Class ShadowSystem
java.lang.Object
org.robolectric.shadows.ShadowSystem
public class ShadowSystem extends Object
-
Constructor Summary
Constructors Constructor Description ShadowSystem() -
Method Summary
Modifier and Type Method Description static longcurrentTimeMillis()ImplementsSystem.currentTimeMillis()through ShadowWrangler.static longnanoTime()ImplementsSystem.nanoTime()through ShadowWrangler.
-
Constructor Details
-
ShadowSystem
public ShadowSystem()
-
-
Method Details
-
nanoTime
public static long nanoTime()ImplementsSystem.nanoTime()through ShadowWrangler.- Returns:
- Current time with nanos.
-
currentTimeMillis
public static long currentTimeMillis()ImplementsSystem.currentTimeMillis()through ShadowWrangler.- Returns:
- Current time with millis.
-