Bitcoin Core  0.20.99
P2P Digital Currency
Functions | Variables
examples.cpp File Reference
#include <bench/bench.h>
#include <util/time.h>
#include <math.h>
Include dependency graph for examples.cpp:

Go to the source code of this file.

Functions

static void Sleep100ms (benchmark::State &state)
 
 BENCHMARK (Sleep100ms, 10)
 
static void Trig (benchmark::State &state)
 
 BENCHMARK (Trig, 12 *1000 *1000)
 

Variables

volatile double sum = 0.0
 

Function Documentation

◆ BENCHMARK() [1/2]

BENCHMARK ( Sleep100ms  ,
10   
)
Here is the caller graph for this function:

◆ BENCHMARK() [2/2]

BENCHMARK ( Trig  ,
12 *1000 *  1000 
)

◆ Sleep100ms()

static void Sleep100ms ( benchmark::State state)
static

Definition at line 10 of file examples.cpp.

Here is the call graph for this function:

◆ Trig()

static void Trig ( benchmark::State state)
static

Definition at line 24 of file examples.cpp.

Here is the call graph for this function:

Variable Documentation

◆ sum

volatile double sum = 0.0

Definition at line 22 of file examples.cpp.