DRCL J-Sim API

drcl.util
Class MiscUtil

java.lang.Object
  extended bydrcl.util.MiscUtil

public class MiscUtil
extends java.lang.Object

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

MiscUtil

public MiscUtil()
Method Detail

timeElapsed

public static double timeElapsed(long pastReferencePoint_)
Returns the wall time (in second) elapsed since pastReferencePoint_. This method uses java.lang.System.currentTimeMillis() to obtain the current time.

Parameters:
pastReferencePoint_ - past time instance in ms.

markTime

public static void markTime()
Marks the current time for calculate time elapsed in timeElapsed().


timeElapsed

public static double timeElapsed()
Returns the wall time (in second) elapsed since last time marked. This method uses java.lang.System.currentTimeMillis() to obtain the current time.


gc

public static void gc()

totalMemory

public static long totalMemory()

freeMemory

public static long freeMemory()

maxMemory

public static long maxMemory()

allocatedMemory

public static long allocatedMemory()

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~