Revision 2802,
1.3 KB
checked in by mattausch, 16 years ago
(diff) |
worked on renderqueue
|
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 |
|
---|
17 | #ifndef NO_PRAGMA_ONCE
|
---|
18 | #pragma once
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | #ifndef _PERFTIMER_H
|
---|
22 | #define _PERFTIMER_H
|
---|
23 |
|
---|
24 | // note: RDTSC timer does not work with modern CPUs
|
---|
25 | #define NO_RDTSC_TIMER
|
---|
26 |
|
---|
27 | #ifdef WIN32
|
---|
28 | #ifndef NO_RDTSC_TIMER
|
---|
29 | #include "RDTSCTimer.h"
|
---|
30 | typedef RDTSCTimer PerfTimer;
|
---|
31 | #elif !defined(NO_BENCH_TIMER)
|
---|
32 | #include "BenchTimer.h"
|
---|
33 | typedef BenchTimer PerfTimer;
|
---|
34 | #else // to get a dummy timer for compile checks without windows.h!
|
---|
35 | #define DUMMY_TIMER
|
---|
36 | #define PERFTIMER PerfTimer
|
---|
37 | #include "PerfTimerSkeleton.h"
|
---|
38 | #undef DUMMY_TIMER
|
---|
39 | #undef PERFTIMER
|
---|
40 | #endif
|
---|
41 | #else
|
---|
42 | #include "SGITimer.h"
|
---|
43 | typedef SGITimer PerfTimer;
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | #endif // _PERFTIMER_H
|
---|
Note: See
TracBrowser
for help on using the repository browser.