XED
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xed-get-time.h File Reference
#include "xed-portability.h"
#include "xed-types.h"

Go to the source code of this file.

Functions

static XED_INLINE xed_uint64_t xed_get_time (void)
 xed_get_time() must be compiled with gnu99 on linux to enable the asm() statements. More...
 

Function Documentation

static XED_INLINE xed_uint64_t xed_get_time ( void  )
static

xed_get_time() must be compiled with gnu99 on linux to enable the asm() statements.

If not gnu99, then xed_get_time() returns zero with gcc. GCC has no intrinsic for rdtsc. (The default for XED is to compile with -std=c99.) GCC allows asm even under c99!

Definition at line 59 of file xed-get-time.h.