Bitcoin
Functions | Variables
examples.cpp File Reference
#include <bench/bench.h>
#include <util/time.h>
#include <math.h>

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   
)

◆ BENCHMARK() [2/2]

BENCHMARK ( Trig  ,
12 *1000 *  1000 
)

◆ Sleep100ms()

static void Sleep100ms ( benchmark::State state)
static

◆ Trig()

static void Trig ( benchmark::State state)
static

Variable Documentation

◆ sum

volatile double sum = 0.0