Darknet/YOLO v6.0-37-gb57f9029
Object Detection Framework
 
Loading...
Searching...
No Matches
Timing.hpp File Reference

This file contains C++ classes and functions for working with timing and tracking results. More...

#include <chrono>
#include <map>
#include <string>
Include dependency graph for Timing.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  Darknet::TimingAndTracking
 The timing and tracking functionality is used to find places in the code where optimizations should be made. More...
 
class  Darknet::TimingRecords
 An object of this type is statically instantiated in Timing.cpp. More...
 

Namespaces

namespace  Darknet
 The namespace for the C++ Darknet API.
 

Macros

#define TAT(n)   Darknet::TimingAndTracking tat(n)
 Create a Darknet::TimingAndTracking object on the stack to generate some information allowing us to debug which parts of the code takes a long time to run.
 
#define TAT_COMMENT(n, c)   Darknet::TimingAndTracking tat(n, false, c)
 Similar to TAT() but with a comment.
 
#define TAT_REVIEWED(n, d)   Darknet::TimingAndTracking tat(n, true, d)
 Similar to TAT() but indicate this function or method was reviewed, as well as the date when it was last reviewed.
 
#define TATPARMS   __PRETTY_FUNCTION__
 

Detailed Description

This file contains C++ classes and functions for working with timing and tracking results.

Macro Definition Documentation

◆ TAT

#define TAT (   n)    Darknet::TimingAndTracking tat(n)

Create a Darknet::TimingAndTracking object on the stack to generate some information allowing us to debug which parts of the code takes a long time to run.

◆ TAT_COMMENT

#define TAT_COMMENT (   n,
 
)    Darknet::TimingAndTracking tat(n, false, c)

Similar to TAT() but with a comment.

◆ TAT_REVIEWED

#define TAT_REVIEWED (   n,
 
)    Darknet::TimingAndTracking tat(n, true, d)

Similar to TAT() but indicate this function or method was reviewed, as well as the date when it was last reviewed.

◆ TATPARMS

#define TATPARMS   __PRETTY_FUNCTION__