public class Duration extends Object
| Constructor and Description |
|---|
Duration()
Constructor for an empty instance.
|
Duration(long start,
long end)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Sets the end time to the system current time in milliseconds.
|
long |
getDuration()
Returns the duration in milliseconds.
|
void |
start()
Sets the start time to the system current time in milliseconds.
|
String |
toString() |
public Duration()
public Duration(long start,
long end)
start - the process start time in millisecondsend - the process end time in millisecondspublic void start()
public void end()
public long getDuration()
Copyright © 2016. All rights reserved.