foobar2000 SDK  2015-01-14
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 18 of file timers.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file timers.h.

20  {
21  owner = p_owner;
22  start = __rdtsc();
23  }
profiler_static * owner
Definition: timers.h:30
t_int64 start
Definition: timers.h:29
pfc::profiler_local::~profiler_local ( )
inline

Definition at line 24 of file timers.h.

24  {
25  t_int64 end = __rdtsc();
26  owner->add_time(end-start);
27  }
profiler_static * owner
Definition: timers.h:30
t_int64 start
Definition: timers.h:29
void add_time(t_int64 delta)
Definition: timers.h:12
int64_t t_int64
Definition: int_types.h:2

Field Documentation

profiler_static* pfc::profiler_local::owner
private

Definition at line 30 of file timers.h.

t_int64 pfc::profiler_local::start
private

Definition at line 29 of file timers.h.


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