|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.util.MiscUtil
Containing miscellaneous utility methods.
For utility methods regarding numbers, object cloning and comparison,
and string manipulation, see NumberUtil, ObjectUtil and
StringUtil respectively.
| Constructor Summary | |
MiscUtil()
|
|
| Method Summary | |
static long |
allocatedMemory()
|
static long |
freeMemory()
|
static void |
gc()
|
static void |
markTime()
Marks the current time for calculate time elapsed in timeElapsed(). |
static long |
maxMemory()
|
static double |
timeElapsed()
Returns the wall time (in second) elapsed since last time marked. |
static double |
timeElapsed(long pastReferencePoint_)
Returns the wall time (in second) elapsed since pastReferencePoint_.
|
static long |
totalMemory()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiscUtil()
| Method Detail |
public static double timeElapsed(long pastReferencePoint_)
pastReferencePoint_.
This method uses java.lang.System.currentTimeMillis() to obtain the current time.
pastReferencePoint_ - past time instance in ms.public static void markTime()
timeElapsed().
public static double timeElapsed()
java.lang.System.currentTimeMillis() to obtain the current time.
public static void gc()
public static long totalMemory()
public static long freeMemory()
public static long maxMemory()
public static long allocatedMemory()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||