public interface

Clock

com.facebook.common.time.Clock
Known Indirect Subclasses

Class Overview

Interface for getting the current time.

Summary

Constants
long MAX_TIME The maximum time.
Public Methods
abstract long now()
Gets the current time in milliseconds.

Constants

public static final long MAX_TIME

The maximum time.

Constant Value: 9223372036854775807 (0x7fffffffffffffff)

Public Methods

public abstract long now ()

Gets the current time in milliseconds.

Returns
  • the current time in milliseconds.