|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.core.client.Duration
public class Duration
A utility class for measuring elapsed time.
| Constructor Summary | |
|---|---|
Duration()
Creates a new Duration whose start time is now. |
|
| Method Summary | |
|---|---|
static double |
currentTimeMillis()
Returns the same result as System.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Duration()
| Method Detail |
|---|
public static double currentTimeMillis()
System.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()
public double getStartMillis()
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||