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
 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 ()
 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 ( )

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(), RENDER_3D_RAYTRACE::Reload(), RENDER_3D_LEGACY::reload(), RENDER_3D_RAYTRACE::render(), EDA_3D_CANVAS::request_start_moving_camera(), and RENDER_3D_RAYTRACE::restartRenderState().