Bitcoin Core  0.19.99
P2P Digital Currency
Functions
bench.h File Reference
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "sys/time.h"
Include dependency graph for bench.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static double gettimedouble (void)
 
void print_number (double x)
 
void run_benchmark (char *name, void(*benchmark)(void *), void(*setup)(void *), void(*teardown)(void *), void *data, int count, int iter)
 
int have_flag (int argc, char **argv, char *flag)
 

Function Documentation

◆ gettimedouble()

static double gettimedouble ( void  )
static

Definition at line 15 of file bench.h.

Here is the caller graph for this function:

◆ have_flag()

int have_flag ( int  argc,
char **  argv,
char *  flag 
)

Definition at line 67 of file bench.h.

Here is the caller graph for this function:

◆ print_number()

void print_number ( double  x)

Definition at line 21 of file bench.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_benchmark()

void run_benchmark ( char *  name,
void(*)(void *)  benchmark,
void(*)(void *)  setup,
void(*)(void *)  teardown,
void *  data,
int  count,
int  iter 
)

Definition at line 34 of file bench.h.

Here is the call graph for this function:
Here is the caller graph for this function: