cgl.hpsearch.shell.system
Class HRTimer
java.lang.Object
org.mozilla.javascript.ScriptableObject
cgl.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
|
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 |
HRTimer
public HRTimer()
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()