SystemClock.setDefault

Sets the default system clock that can be obtained with SystemClock.obtain.

This is mostly used for testing and debugging purposes when you want to have control over the time reported by the default system clock.

MT safe.

class SystemClock
static
void
setDefault

Parameters

newClock Clock

Meta