Class SystemClock
- java.lang.Object
-
- com.google.android.exoplayer2.util.SystemClock
-
- All Implemented Interfaces:
Clock
@Deprecated public class SystemClock extends Object implements Clock
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.The standard implementation ofClock, an instance of which is available viaClock.DEFAULT.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSystemClock()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HandlerWrappercreateHandler(Looper looper, Handler.Callback callback)Deprecated.Creates aHandlerWrapperusing a specified looper and a specified callback for handling messages.longcurrentTimeMillis()Deprecated.Returns the current time in milliseconds since the Unix Epoch.longelapsedRealtime()Deprecated.longnanoTime()Deprecated.voidonThreadBlocked()Deprecated.Notifies the clock that the current thread is about to be blocked and won't return until a condition on another thread becomes true.longuptimeMillis()Deprecated.
-
-
-
Method Detail
-
currentTimeMillis
public long currentTimeMillis()
Deprecated.Description copied from interface:ClockReturns the current time in milliseconds since the Unix Epoch.- Specified by:
currentTimeMillisin interfaceClock- See Also:
System.currentTimeMillis()
-
elapsedRealtime
public long elapsedRealtime()
Deprecated.- Specified by:
elapsedRealtimein interfaceClock- See Also:
SystemClock.elapsedRealtime()
-
uptimeMillis
public long uptimeMillis()
Deprecated.- Specified by:
uptimeMillisin interfaceClock- See Also:
SystemClock.uptimeMillis()
-
nanoTime
public long nanoTime()
Deprecated.Description copied from interface:Clock
-
createHandler
public HandlerWrapper createHandler(Looper looper, @Nullable Handler.Callback callback)
Deprecated.Description copied from interface:ClockCreates aHandlerWrapperusing a specified looper and a specified callback for handling messages.- Specified by:
createHandlerin interfaceClock- See Also:
Handler(Looper, Handler.Callback)
-
onThreadBlocked
public void onThreadBlocked()
Deprecated.Description copied from interface:ClockNotifies the clock that the current thread is about to be blocked and won't return until a condition on another thread becomes true.Should be a no-op for all non-test cases.
- Specified by:
onThreadBlockedin interfaceClock
-
-