DRCL JavaSim API

drcl.util
Class MiscUtil

java.lang.Object
  |
  +--drcl.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.

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~