public class

Duration

extends Object
java.lang.Object
   ↳ com.google.gwt.core.client.Duration

Class Overview

A utility class for measuring elapsed time.

Summary

Public Constructors
Duration()
Creates a new Duration whose start time is now.
Public Methods
static double currentTimeMillis()
Returns the same result as currentTimeMillis(), but as a double.
int elapsedMillis()
Returns the number of milliseconds that have elapsed since this object was created.
double getStartMillis()
Returns the time when the object was created.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Duration ()

Creates a new Duration whose start time is now.

Public Methods

public static double currentTimeMillis ()

Returns the same result as currentTimeMillis(), but as a double. Because emulated long math is significantly slower than doubles in Production Mode, this method is to be preferred.

public int elapsedMillis ()

Returns the number of milliseconds that have elapsed since this object was created.

public double getStartMillis ()

Returns the time when the object was created.