LLVM OpenMP 22.0.0git
kmp_stats_timing.cpp File Reference

Timing functions. More...

#include <stdlib.h>
#include <unistd.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "kmp.h"
#include "kmp_stats_timing.h"

Go to the source code of this file.

Functions

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

Variables

static bool useSI = true

Detailed Description

Timing functions.

Definition in file kmp_stats_timing.cpp.

Function Documentation

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

Variable Documentation

◆ useSI

bool useSI = true
static

Definition at line 84 of file kmp_stats_timing.cpp.

Referenced by formatSI().