com.turtle3d.util
Class TaskTimer

java.lang.Object
  extended by com.turtle3d.util.TaskTimer

public class TaskTimer
extends java.lang.Object

Singleton class for time measurement.

Author:
Marek Paterczyk

Constructor Summary
TaskTimer()
           
 
Method Summary
 java.lang.String formatedTaskTime(java.lang.String taskName)
           
 java.lang.String formatTime(long seconds)
           
 java.text.DecimalFormat getSecondsFormat()
           
static TaskTimer getTaskTimer()
           
 void setSecondsFormat(java.text.DecimalFormat secondsFormat)
           
 long taskComplete(java.lang.String taskName)
           
 void taskStart(java.lang.String taskName)
           
 void taskStart(java.lang.String taskName, java.lang.String taskDecription)
           
 long taskTime(java.lang.String taskName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskTimer

public TaskTimer()
Method Detail

getTaskTimer

public static TaskTimer getTaskTimer()

taskStart

public void taskStart(java.lang.String taskName)

taskStart

public void taskStart(java.lang.String taskName,
                      java.lang.String taskDecription)

taskComplete

public long taskComplete(java.lang.String taskName)

taskTime

public long taskTime(java.lang.String taskName)

formatedTaskTime

public java.lang.String formatedTaskTime(java.lang.String taskName)

formatTime

public java.lang.String formatTime(long seconds)

getSecondsFormat

public java.text.DecimalFormat getSecondsFormat()

setSecondsFormat

public void setSecondsFormat(java.text.DecimalFormat secondsFormat)