foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::profiler_local

#include <timers.h>

Public Member Functions

 profiler_local (profiler_static *p_owner)
 
 ~profiler_local ()
 

Private Attributes

profiler_staticowner
 
t_int64 start
 

Detailed Description

Definition at line 20 of file timers.h.

Constructor & Destructor Documentation

pfc::profiler_local::profiler_local ( profiler_static p_owner)
inline

Definition at line 22 of file timers.h.

22  {
23  owner = p_owner;
24  start = __rdtsc();
25  }
profiler_static * owner
Definition: timers.h:32
t_int64 start
Definition: timers.h:31
pfc::profiler_local::~profiler_local ( )
inline

Definition at line 26 of file timers.h.

26  {
27  t_int64 end = __rdtsc();
28  owner->add_time(end - start);
29  }
profiler_static * owner
Definition: timers.h:32
t_int64 start
Definition: timers.h:31
void add_time(t_int64 delta)
Definition: timers.h:14
int64_t t_int64
Definition: int_types.h:2

Field Documentation

profiler_static* pfc::profiler_local::owner
private

Definition at line 32 of file timers.h.

t_int64 pfc::profiler_local::start
private

Definition at line 31 of file timers.h.


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