about summary refs log tree commit diff
path: root/sysdeps/i386/memusage.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/memusage.h')
-rw-r--r--sysdeps/i386/memusage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/i386/memusage.h b/sysdeps/i386/memusage.h
index 8d5749f655..73ce98c630 100644
--- a/sysdeps/i386/memusage.h
+++ b/sysdeps/i386/memusage.h
@@ -17,5 +17,6 @@
    02111-1307 USA.  */
 
 #define GETSP() ({ register uintptr_t stack_ptr asm ("esp"); stack_ptr; })
+#define GETTIME(low,high) asm ("rdtsc" : "=a" (low), "=d" (high))
 
 #include <sysdeps/generic/memusage.h>