Nek5000
SEM for Incompressible NS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
jl
rdtsc.h
Go to the documentation of this file.
1
#ifndef RDTSC_H
2
#define RDTSC_H
3
4
#define DEFINE_HW_COUNTER() \
5
static __inline__ unsigned long long getticks(void) \
6
{ \
7
volatile unsigned low, high; \
8
__asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)); \
9
return ((unsigned long long)high)<<32 | low; \
10
}
11
12
#endif
Generated on Tue Jul 14 2015 10:52:58 for Nek5000 by
1.8.8