LLVM OpenMP 20.0.0git
Classes | Functions
kmp_stats_timing.h File Reference

Access to real time clock and timers. More...

#include "kmp_os.h"
#include <limits>
#include <stdint.h>
#include <string>

Go to the source code of this file.

Classes

class  tsc_tick_count
 
class  tsc_tick_count::tsc_interval_t
 

Functions

tsc_tick_count::tsc_interval_t operator- (const tsc_tick_count &t1, const tsc_tick_count &t0)
 
tsc_tick_count::tsc_interval_t operator- (const tsc_tick_count::tsc_interval_t &i1, const tsc_tick_count::tsc_interval_t &i0)
 
tsc_tick_count::tsc_interval_toperator+= (tsc_tick_count::tsc_interval_t &i1, const tsc_tick_count::tsc_interval_t &i0)
 
std::string formatSI (double interval, int width, char unit)
 
std::string formatSeconds (double interval, int width)
 
std::string formatTicks (double interval, int width)
 

Detailed Description

Access to real time clock and timers.

Definition in file kmp_stats_timing.h.

Function Documentation

◆ formatSeconds()

std::string formatSeconds ( double  interval,
int  width 
)
inline

Definition at line 107 of file kmp_stats_timing.h.

References formatSI().

◆ formatSI()

std::string formatSI ( double  interval,
int  width,
char  unit 
)

Definition at line 88 of file kmp_stats_timing.cpp.

References i, int, and useSI.

Referenced by formatSeconds(), and formatTicks().

◆ formatTicks()

std::string formatTicks ( double  interval,
int  width 
)
inline

Definition at line 111 of file kmp_stats_timing.h.

References formatSI().

◆ operator+=()

Definition at line 93 of file kmp_stats_timing.h.

◆ operator-() [1/2]

tsc_tick_count::tsc_interval_t operator- ( const tsc_tick_count t1,
const tsc_tick_count t0 
)
inline

Definition at line 81 of file kmp_stats_timing.h.

◆ operator-() [2/2]

Definition at line 87 of file kmp_stats_timing.h.