Revision 2015,
1.5 KB
checked in by bittner, 18 years ago
(diff) |
pvs efficiency tuning
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | // ===========================================================================
|
---|
2 | // (C) 1999 Vienna University of Technology
|
---|
3 | // ===========================================================================
|
---|
4 | // NAME: PerfTimer
|
---|
5 | // TYPE: c++ header
|
---|
6 | // PROJECT: Urban Viz/yare (yet another rendering engine)
|
---|
7 | // CONTENT: Wrapper for all the Performance Timers
|
---|
8 | // VERSION: 0.1
|
---|
9 | // ===========================================================================
|
---|
10 | // AUTHORS: mw Michael Wimmer
|
---|
11 | // ===========================================================================
|
---|
12 | // HISTORY:
|
---|
13 | //
|
---|
14 | // 15-jul-99 14:00:00 mw created
|
---|
15 | // ===========================================================================
|
---|
16 | // $Header: /usr/local/cvsyare/cvsyare/include/yareutils/PerfTimer.h,v 1.1 2002/09/24 16:53:47 wimmer Exp $
|
---|
17 | // ===========================================================================
|
---|
18 |
|
---|
19 | #ifndef NO_PRAGMA_ONCE
|
---|
20 | #pragma once
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #ifndef _PERFTIMER_H
|
---|
24 | #define _PERFTIMER_H
|
---|
25 |
|
---|
26 | //#define NO_RDTSC_TIMER
|
---|
27 |
|
---|
28 | #ifdef WIN32
|
---|
29 | #ifndef NO_RDTSC_TIMER
|
---|
30 | #include "RDTSCTimer.h"
|
---|
31 | typedef RDTSCTimer PerfTimer;
|
---|
32 | #elif !defined(NO_BENCH_TIMER)
|
---|
33 | #include "BenchTimer.h"
|
---|
34 | typedef BenchTimer PerfTimer;
|
---|
35 | #else // to get a dummy timer for compile checks without windows.h!
|
---|
36 | #define DUMMY_TIMER
|
---|
37 | #define PERFTIMER PerfTimer
|
---|
38 | #include "PerfTimerSkeleton.h"
|
---|
39 | #undef DUMMY_TIMER
|
---|
40 | #undef PERFTIMER
|
---|
41 | #endif
|
---|
42 | #else
|
---|
43 | #include "SGITimer.h"
|
---|
44 | typedef SGITimer PerfTimer;
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #endif // _PERFTIMER_H
|
---|
Note: See
TracBrowser
for help on using the repository browser.