|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcuda.utils.Timer
public class Timer
Simple timer functionality, similar to the CUTIL timer functions
Method Summary | |
---|---|
static java.lang.String |
createPrettyString()
Creates a "pretty" String containing a summary of all timers that currently exist. |
static void |
createTimer(java.lang.Object name)
Creates a new timer with the given name |
static void |
deleteTimer(java.lang.Object name)
Deletes the timer with the given name |
static int |
getAverageTimerValue(java.lang.Object name)
Returns the average time in milliseconds for the timer, which is the total time for the timer divided by the number of completed (stopped) runs the timer has made. |
static int |
getTimerValue(java.lang.Object name)
Returns the total time in milliseconds of all runs since the creation or the last reset. |
static void |
prettyPrint()
Pretty print a summary of all timers that currently exist |
static void |
resetTimer(java.lang.Object name)
Reset the timer with the given name |
static void |
startTimer(java.lang.Object name)
Start the timer with the given name |
static void |
stopTimer(java.lang.Object name)
Stop the timer with the given name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void createTimer(java.lang.Object name)
name
- The name of the timerpublic static void deleteTimer(java.lang.Object name)
name
- The name of the timerpublic static void startTimer(java.lang.Object name)
name
- The name of the timerpublic static void stopTimer(java.lang.Object name)
name
- The name of the timerpublic static void resetTimer(java.lang.Object name)
name
- The name of the timer to resetpublic static int getTimerValue(java.lang.Object name)
name
- The name of the timer
public static int getAverageTimerValue(java.lang.Object name)
public static void prettyPrint()
public static java.lang.String createPrettyString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |