debug.RelativeTimeProvider Extends
A simple object to keep track of a timestamp considered the start of something. The main use is for the logger system to maintain a start time that is occasionally reset. For example, in Gmail, we reset this relative time at the start of a user action so that timings are offset from the beginning of the action. This class also provides a singleton as the default behavior for most use cases is to share the same start time.

Inheritance

Constructor

goog.debug.RelativeTimeProvider()

Instance Methods

Public Protected Private
get() number
No description.
Returns: number  The start time.
code »
reset()
Resets the start time to now.
code »
set(timeStamp)
Sets the start time to the specified time.
Arguments:
timeStamp : number
The start time.
code »

Instance Properties

relativeTimeStart_ :
The start time.
Code »

Static Methods

goog.debug.RelativeTimeProvider.getDefaultInstance() goog.debug.RelativeTimeProvider
No description.
Returns: goog.debug.RelativeTimeProvider  The default instance.
code »

Static Properties

goog.debug.RelativeTimeProvider.defaultInstance_ : goog.debug.RelativeTimeProvider
Default instance.
Code »

Package debug

Package Reference