EtherCAT Control Framework v0.9
Implementation of EtherCAT protocol using IgH EtherCAT library for robot controller.
Timing Class Reference

Contains Timing measurement related functions. More...

#include <timing.hpp>

Public Member Functions

void GetTime ()
 Gets the current time and assings to timer_start_ member. More...
 
void MeasureTimeDifference ()
 Measures time difference from last call to function GetTime() and writes is to time_span member. More...
 
void OutInfoToFile ()
 Outputs timing information to loop_timing_info.txt file. More...
 

Public Attributes

std::chrono::high_resolution_clock::time_point timer_start_
 
std::chrono::high_resolution_clock::time_point last_start_time_
 
std::chrono::duration< long, std::micro > time_span_
 
std::vector< long > timing_info_ = std::vector<long>(NUMBER_OF_SAMPLES)
 
uint32_t counter_ = 0
 

Detailed Description

Contains Timing measurement related functions.

Member Function Documentation

◆ GetTime()

void Timing::GetTime ( )

Gets the current time and assings to timer_start_ member.

◆ MeasureTimeDifference()

void Timing::MeasureTimeDifference ( )

Measures time difference from last call to function GetTime() and writes is to time_span member.

◆ OutInfoToFile()

void Timing::OutInfoToFile ( )

Outputs timing information to loop_timing_info.txt file.

Member Data Documentation

◆ counter_

uint32_t Timing::counter_ = 0

◆ last_start_time_

std::chrono::high_resolution_clock::time_point Timing::last_start_time_

◆ time_span_

std::chrono::duration<long,std::micro> Timing::time_span_

◆ timer_start_

std::chrono::high_resolution_clock::time_point Timing::timer_start_

◆ timing_info_

std::vector<long> Timing::timing_info_ = std::vector<long>(NUMBER_OF_SAMPLES)

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