J-Sim v1.2.1-p7 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 void markTime()
          Marks the current time for calculate time elapsed in timeElapsed().
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_.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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.


J-Sim v1.2.1-p7 API

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