Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Xbyak::util::Clock Class Reference

#include <xbyak_util.h>

Public Member Functions

 Clock ()
 
void begin ()
 
void end ()
 
int getCount () const
 
uint64 getClock () const
 
void clear ()
 

Static Public Member Functions

static uint64 getRdtsc ()
 

Detailed Description

Definition at line 374 of file xbyak_util.h.

Constructor & Destructor Documentation

◆ Clock()

Xbyak::util::Clock::Clock ( )
inline

Definition at line 386 of file xbyak_util.h.

387 : clock_(0)
388 , count_(0)
389 {
390 }

Member Function Documentation

◆ begin()

void Xbyak::util::Clock::begin ( )
inline

Definition at line 391 of file xbyak_util.h.

392 {
393 clock_ -= getRdtsc();
394 }
static uint64 getRdtsc()
Definition xbyak_util.h:376
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void Xbyak::util::Clock::clear ( )
inline

Definition at line 402 of file xbyak_util.h.

402{ count_ = 0; clock_ = 0; }

◆ end()

void Xbyak::util::Clock::end ( )
inline

Definition at line 395 of file xbyak_util.h.

396 {
397 clock_ += getRdtsc();
398 count_++;
399 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClock()

uint64 Xbyak::util::Clock::getClock ( ) const
inline

Definition at line 401 of file xbyak_util.h.

401{ return clock_; }
Here is the caller graph for this function:

◆ getCount()

int Xbyak::util::Clock::getCount ( ) const
inline

Definition at line 400 of file xbyak_util.h.

400{ return count_; }
Here is the caller graph for this function:

◆ getRdtsc()

static uint64 Xbyak::util::Clock::getRdtsc ( )
inlinestatic

Definition at line 376 of file xbyak_util.h.

377 {
378#ifdef _MSC_VER
379 return __rdtsc();
380#else
381 unsigned int eax, edx;
382 __asm__ volatile("rdtsc" : "=a"(eax), "=d"(edx));
383 return ((uint64)edx << 32) | eax;
384#endif
385 }
static const Reg32 edx(Operand::EDX)
Xbyak::uint64 uint64
Definition quantize.cpp:51
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: