summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h7
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;