Electroneum
Loading...
Searching...
No Matches
epee::profile_tools::call_frame Struct Reference

#include <profile_tools.h>

Public Member Functions

 call_frame (local_call_account &cc)
 ~call_frame ()

Detailed Description

Definition at line 87 of file profile_tools.h.

Constructor & Destructor Documentation

◆ call_frame()

epee::profile_tools::call_frame::call_frame ( local_call_account & cc)
inline

Definition at line 90 of file profile_tools.h.

90 :m_cc(cc)
91 {
92 cc.m_count_of_call++;
93 m_call_time = boost::posix_time::microsec_clock::local_time();
94 //::QueryPerformanceCounter((LARGE_INTEGER *)&m_call_time);
95 }

◆ ~call_frame()

epee::profile_tools::call_frame::~call_frame ( )
inline

Definition at line 97 of file profile_tools.h.

98 {
99 //__int64 ret_time = 0;
100
101 boost::posix_time::ptime now_t(boost::posix_time::microsec_clock::local_time());
102 boost::posix_time::time_duration delta_microsec = now_t - m_call_time;
103 uint64_t miliseconds_used = delta_microsec.total_microseconds();
104
105 //::QueryPerformanceCounter((LARGE_INTEGER *)&ret_time);
106 //m_call_time = (ret_time-m_call_time)/1000;
107 m_cc.m_summary_time_used += miliseconds_used;
108 }
unsigned __int64 uint64_t
Definition stdint.h:136

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/include/profile_tools.h