# ProfileTimer

from pandac.PandaModules import ProfileTimer

*
ProfileTimer
HowTo: Create a ProfileTimer and hold onto it. Call init() whenever you like (the timer doesn't start yet). Call on() to start the timer. While the timer is on, call mark() at each point of interest, in the code you are timing. You can turn the timer off() and on() to skip things you don't want to time. When your timing is finished, call printTo() to see the results (e.g. myTimer.printTo(cerr)).
Notes: You should be able to time things down to the millisecond well enough, but if you call on() and off() within micro- seconds of each other, I don't think you'll get very good results.
*/

## Inheritance:

ProfileTimer:

## Methods of ProfileTimer:

consolidateAllTo
consolidateTo
getTotalTime
init
mark
off
on
printAllTo
printTo

consolidateAllTo static void ProfileTimer::consolidateAllTo(ostream &out = (cout)); Don't call any of the following during timing: (Because they are slow, not because anything will break).

consolidateTo void ProfileTimer::consolidateTo(ostream &out = (cout)) const; Undocumented function.

getTotalTime double ProfileTimer::getTotalTime(void) const; Don't call any of the following during timing: (Because they are slow, not because anything will break).

init void ProfileTimer::init(char const *name, int maxEntries = (MaxEntriesDefault)); Undocumented function.

mark void ProfileTimer::mark(char const *tag); Undocumented function.

off void ProfileTimer::off(void); Undocumented function.

on void ProfileTimer::on(void); Filename: profileTimer.I Created by: PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .

printAllTo static void ProfileTimer::printAllTo(ostream &out = (cout)); Undocumented function.

printTo void ProfileTimer::printTo(ostream &out = (cout)) const; Undocumented function.