CMS 3D CMS Logo

Classes | Typedefs | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Utilities/Timing/interface/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 x.

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

                                                 {
  PentiumTimeType x;
  // Works only for x86 machines in protected mode.
  __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
  return x;
}