14 #ifndef PROFILETIMER_H //[
15 #define PROFILETIMER_H
17 #include "pandabase.h"
18 #include "trueClock.h"
42 enum { MaxEntriesDefault=4096 };
44 ProfileTimer(
const char* name=0,
int maxEntries=MaxEntriesDefault);
48 void init(
const char* name,
int maxEntries=MaxEntriesDefault);
51 void mark(
const char* tag);
53 void off(
const char* tag);
57 double getTotalTime()
const;
58 static void consolidateAllTo(ostream &out=cout);
59 void consolidateTo(ostream &out=cout)
const;
60 static void printAllTo(ostream &out=cout);
61 void printTo(ostream &out=cout)
const;
102 #include "profileTimer.I"