public class TestMethodDuration extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
NANO_TO_MILLI |
| Constructor and Description |
|---|
TestMethodDuration()
Constructor
|
TestMethodDuration(String item,
long startInNano,
long endInNano)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEndInNano() |
String |
getItem() |
long |
getMsDifference()
Returns the difference end - start in milli seconds
|
long |
getNanoDifference()
Time difference in nano seconds
|
BigDecimal |
getRoundedMsDifference()
Returns rounded milli seconds
|
long |
getStartInNano() |
void |
setEndInNano(long endInNano) |
void |
setItem(String item) |
void |
setStartInNano(long startInNano) |
String |
toString() |
public static final long NANO_TO_MILLI
public TestMethodDuration()
public TestMethodDuration(String item, long startInNano, long endInNano)
item - e.g. method callstartInNano - start system time in nanoendInNano - end system time in nanopublic String getItem()
public void setItem(String item)
public long getStartInNano()
public void setStartInNano(long startInNano)
public long getEndInNano()
public void setEndInNano(long endInNano)
public long getNanoDifference()
public long getMsDifference()
public BigDecimal getRoundedMsDifference()
Copyright © 2014. All rights reserved.