KiCad PCB EDA Suite
profile.h File Reference

: More...

#include <chrono>
#include <string>
#include <iostream>
#include <iomanip>

Go to the source code of this file.

Classes

class  PROF_COUNTER
 The class PROF_COUNTER is a small class to help profiling. More...
 
class  SCOPED_PROF_COUNTER< DURATION >
 A simple RAII class to measure the time of an operation. More...
 

Functions

unsigned GetRunningMicroSecs ()
 Function GetRunningMicroSecs An alternate way to calculate an elapset time (in microsecondes) to class PROF_COUNTER. More...
 

Detailed Description

:

Simple profiling functions for measuring code execution time.

Definition in file profile.h.

Function Documentation

◆ GetRunningMicroSecs()

unsigned GetRunningMicroSecs ( )

Function GetRunningMicroSecs An alternate way to calculate an elapset time (in microsecondes) to class PROF_COUNTER.

Returns
an ever increasing indication of elapsed microseconds. Use this by computing differences between two calls.
Author
Dick Hollenbeck

Referenced by BOARD_ADAPTER::createLayers(), EDA_3D_CANVAS::DoRePaint(), BOARD_ADAPTER::InitSettings(), PCB_EDIT_FRAME::OpenProjectFiles(), C3D_RENDER_RAYTRACING::Reload(), C3D_RENDER_OGL_LEGACY::reload(), C3D_RENDER_RAYTRACING::render(), EDA_3D_CANVAS::request_start_moving_camera(), and C3D_RENDER_RAYTRACING::restart_render_state().