public class

SystemClock

extends Object
implements Clock
java.lang.Object
   ↳ com.facebook.common.time.SystemClock

Class Overview

Implementation of Clock that delegates to the system clock.

Summary

[Expand]
Inherited Constants
From interface com.facebook.common.time.Clock
Public Methods
static SystemClock get()
long now()
Gets the current time in milliseconds.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.common.time.Clock

Public Methods

public static SystemClock get ()

public long now ()

Gets the current time in milliseconds.

Returns
  • the current time in milliseconds.