CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
PentiumTimer.h File Reference
#include "Utilities/Timing/interface/GenTimer.h"

Go to the source code of this file.

Classes

struct  PentiumTime::OneTick
 
struct  PentiumTime
 

Typedefs

typedef long long int PentiumTimeIntervalType
 
typedef GenTimer< PentiumTimePentiumTimer
 
typedef unsigned long long int PentiumTimeType
 

Functions

PentiumTimeType rdtscPentium ()
 

Typedef Documentation

typedef long long int PentiumTimeIntervalType

Definition at line 11 of file PentiumTimer.h.

a timer valid only on Linux Pentium

Definition at line 49 of file PentiumTimer.h.

typedef unsigned long long int PentiumTimeType

Definition at line 10 of file PentiumTimer.h.

Function Documentation

PentiumTimeType rdtscPentium ( )
inline

Definition at line 13 of file PentiumTimer.h.

References vdt::x.

Referenced by TimerStack::pentiumTime(), and PentiumTime::time().

13  {
15  // Works only for x86 machines in protected mode.
16  __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
17  return x;
18 }
unsigned long long int PentiumTimeType
Definition: PentiumTimer.h:10
x
Definition: VDTMath.h:216