29 lines
745 B
Plaintext
29 lines
745 B
Plaintext
// Filename: pStatTimer.I
|
|
// Created by: drose (11Jul00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatTimer::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE PStatTimer::
|
|
PStatTimer(PStatCollector &collector) :
|
|
_collector(collector)
|
|
{
|
|
_collector.start();
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatTimer::Destructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE PStatTimer::
|
|
~PStatTimer() {
|
|
_collector.stop();
|
|
}
|
|
|