HPSearch

cgl.hpsearch.shell.system
Class HRTimer

java.lang.Object
  extended byorg.mozilla.javascript.ScriptableObject
      extended bycgl.hpsearch.shell.system.HRTimer
All Implemented Interfaces:
Scriptable, Serializable

public class HRTimer
extends ScriptableObject

HRTimer to measure performance in script execution
Created on Apr 22, 2005

Author:
Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
DONTENUM, EMPTY, parent, PERMANENT, prototype, READONLY
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
HRTimer()
           
 
Method Summary
 String getClassName()
           
static Scriptable jsConstructor(Context cx, Object[] args, Function ctorObj, boolean inNewExpr)
           
static void jsFunction_reset(Context _cx, Scriptable thisObj, Object[] args, Function funObj)
           
static void jsFunction_start(Context _cx, Scriptable thisObj, Object[] args, Function funObj)
           
static void jsFunction_stop(Context _cx, Scriptable thisObj, Object[] args, Function funObj)
           
 double jsGet_duration()
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
callMethod, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRTimer

public HRTimer()
Method Detail

jsConstructor

public static Scriptable jsConstructor(Context cx,
                                       Object[] args,
                                       Function ctorObj,
                                       boolean inNewExpr)

getClassName

public String getClassName()

jsFunction_start

public static void jsFunction_start(Context _cx,
                                    Scriptable thisObj,
                                    Object[] args,
                                    Function funObj)

jsFunction_stop

public static void jsFunction_stop(Context _cx,
                                   Scriptable thisObj,
                                   Object[] args,
                                   Function funObj)

jsFunction_reset

public static void jsFunction_reset(Context _cx,
                                    Scriptable thisObj,
                                    Object[] args,
                                    Function funObj)

jsGet_duration

public double jsGet_duration()

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006