KiCad PCB EDA Suite
Loading...
Searching...
No Matches
profile.h File Reference

: More...

#include <atomic>
#include <chrono>
#include <sstream>
#include <string>
#include <iostream>
#include <iomanip>
#include <cstdint>

Go to the source code of this file.

Classes

class  PROF_TIMER
 A small class to help profiling. More...
 
class  SCOPED_PROF_TIMER< DURATION >
 A simple RAII class to measure the time of an operation. More...
 
class  PROF_COUNTER
 A thread-safe event counter. More...
 

Functions

int64_t GetRunningMicroSecs ()
 An alternate way to calculate an elapsed time (in microsecondes) to class PROF_COUNTER.
 

Detailed Description

:

Simple profiling functions for measuring code execution time.

Definition in file profile.h.

Function Documentation

◆ GetRunningMicroSecs()

int64_t GetRunningMicroSecs ( )

An alternate way to calculate an elapsed 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(), EXPORTER_STEP::Export(), BOARD_ADAPTER::InitSettings(), PCB_EDIT_FRAME::OpenProjectFiles(), RENDER_3D_OPENGL::reload(), RENDER_3D_RAYTRACE_BASE::Reload(), RENDER_3D_RAYTRACE_BASE::render(), EDA_3D_CANVAS::request_start_moving_camera(), RENDER_3D_RAYTRACE_BASE::restartRenderState(), and ZONE_FILLER_TOOL::ZoneFillDirty().