Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
poltimer.h
Go to the documentation of this file.
1
7
#ifndef POLTIMER_H
8
#define POLTIMER_H
9
10
#include "
polclock.h
"
11
#include <iosfwd>
12
namespace
Pol
13
{
14
namespace
Core
15
{
16
class
PolTimer
17
{
18
public
:
19
PolTimer
() :
start
(
polclock
() ) {}
20
void
printOn
( std::ostream& os ) { os <<
"elapsed: "
<<
polclock
() -
start
<<
" polclocks\n"
; }
21
22
private
:
23
polclock_t
start
;
24
};
25
}
26
}
27
#endif
Pol::Core::polclock
polclock_t polclock()
Definition:
polclock.cpp:72
Pol::Core::PolTimer::printOn
void printOn(std::ostream &os)
Definition:
poltimer.h:20
polclock.h
Pol::Core::PolTimer
Definition:
poltimer.h:16
Pol::Core::PolTimer::PolTimer
PolTimer()
Definition:
poltimer.h:19
Pol::Core::polclock_t
int polclock_t
Definition:
polclock.h:26
Pol::Core::PolTimer::start
polclock_t start
Definition:
poltimer.h:23
Pol
Definition:
berror.cpp:12
pol
poltimer.h
Generated on Wed Oct 10 2018 02:42:21 for Pol by
1.8.11