Section: Visualization Toolkit Common Classes
In addition, vtkTimerLog allows the user to simply get the current time, and to start/stop a simple timer separate from the timing table logging.
To create an instance of class vtkTimerLog, simply invoke its constructor as follows
obj = vtkTimerLog
obj
is an instance of the vtkTimerLog class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkTimerLog = obj.NewInstance ()
vtkTimerLog = obj.SafeDownCast (vtkObject o)
obj.StartTimer ()
- Set the StartTime to the current time. Used with GetElapsedTime().
obj.StopTimer ()
- Sets EndTime to the current time. Used with GetElapsedTime().
double = obj.GetElapsedTime ()
- Returns the difference between StartTime and EndTime as
a doubleing point value indicating the elapsed time in seconds.