Go to the documentation of this file.
40 #include <sys/types.h>
41 #include <sys/timeb.h>
45 #include <sys/types.h>
46 #include <sys/times.h>
56 # define SELECT_MASK fd_set
62 # define SELECT_MASK void
64 # define SELECT_MASK int
69 #define VTK_LOG_EVENT_LENGTH 40
182 static timeb FirstWallTime;
183 static timeb CurrentWallTime;
185 static FILETIME FirstWallTime;
186 static FILETIME CurrentWallTime;
202 int tick,
int deltatick,
const char *
event);
214 #define vtkTimerLogMacro(string) \
216 vtkTimerLog::FormatAndMarkEvent("Mark: In %s, line %d, class %s: %s", \
217 __FILE__, __LINE__, this->GetClassName(), string); \
static double GetCPUTime()
static int GetEventIndent(int i)
static void FormatAndMarkEvent(const char *EventString,...)
#define VTK_LOG_EVENT_LENGTH
#define VTKCOMMONSYSTEM_EXPORT
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
static void DumpLog(const char *filename)
static double GetEventWallTime(int i)
static vtkTimerLog * New()
static void AllocateLog()
static double GetUniversalTime()
static void MarkStartEvent(const char *EventString)
static void DumpLogWithIndents(ostream *os, double threshold)
static vtkTimerLogEntry * GetEvent(int i)
a simple class to control print indentation
static const char * GetEventString(int i)
static timeval CurrentWallTime
GLboolean GLboolean GLboolean GLboolean a
static void MarkEvent(const char *EventString)
static int GetMaxEntries()
void PrintSelf(ostream &os, vtkIndent indent)
static void SetLogging(int v)
Timer support and logging.
static int TicksPerSecond
static timeval FirstWallTime
static void MarkEndEvent(const char *EventString)
static int GetNumberOfEvents()
static void SetMaxEntries(int a)
static vtkTimerLogEntry * TimerLog
static tms CurrentCpuTicks
static void DumpEntry(ostream &os, int index, double time, double deltatime, int tick, int deltatick, const char *event)