diff options
author | rubidium <rubidium@openttd.org> | 2011-05-02 16:14:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-02 16:14:23 +0000 |
commit | 4d5dbf51707c42c24eeafdb65016b079c54adcf2 (patch) | |
tree | 0197dcc17f4a8411ecea2223f356019c902fe7b9 /src/debug.h | |
parent | e9837ff1ec1326aec622366ae29ff1aa81581daf (diff) | |
download | openttd-4d5dbf51707c42c24eeafdb65016b079c54adcf2.tar.xz |
(svn r22410) -Document: some more bits ;)
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index 213872474..76b66f341 100644 --- a/src/debug.h +++ b/src/debug.h @@ -61,6 +61,12 @@ const char *GetDebugString(); /* Shorter form for passing filename and linenumber */ #define FILE_LINE __FILE__, __LINE__ +/** + * Get the tick counter from the CPU (high precision timing). + * @return The count. + */ +uint64 ottd_rdtsc(); + /* Used for profiling * * Usage: @@ -83,7 +89,6 @@ const char *GetDebugString(); * it with another block. **/ #define TIC() {\ - extern uint64 ottd_rdtsc();\ uint64 _xxx_ = ottd_rdtsc();\ static uint64 __sum__ = 0;\ static uint32 __i__ = 0; |