36 lines
930 B
Java
36 lines
930 B
Java
|
package com.google.android.gms.common.util;
|
||
|
|
||
|
import android.os.SystemClock;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class DefaultClock implements Clock {
|
||
|
private static final DefaultClock zza = new DefaultClock();
|
||
|
|
||
|
@Override // com.google.android.gms.common.util.Clock
|
||
|
public final long currentThreadTimeMillis() {
|
||
|
return SystemClock.currentThreadTimeMillis();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.util.Clock
|
||
|
public final long currentTimeMillis() {
|
||
|
return System.currentTimeMillis();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.util.Clock
|
||
|
public final long elapsedRealtime() {
|
||
|
return SystemClock.elapsedRealtime();
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.util.Clock
|
||
|
public final long nanoTime() {
|
||
|
return System.nanoTime();
|
||
|
}
|
||
|
|
||
|
public static Clock getInstance() {
|
||
|
return zza;
|
||
|
}
|
||
|
|
||
|
private DefaultClock() {
|
||
|
}
|
||
|
}
|