PAPI  5.7.0.0
display_error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double display_error (long long average, long long high, long long low, long long expected, int quiet)
 

Function Documentation

◆ display_error()

double display_error ( long long  average,
long long  high,
long long  low,
long long  expected,
int  quiet 
)

Definition at line 7 of file display_error.c.

11  {
12 
13  double error;
14 
15  error=(((double)average-expected)/expected)*100.0;
16 
17  if (!quiet) {
18  printf(" Expected: %lld\n", expected);
19  printf(" High: %lld Low: %lld Average: %lld\n",
20  high,low,average);
21 
22  printf(" ( note, a small value above %lld may be expected due\n",
23  expected);
24  printf(" to overhead and interrupt noise, among other reasons)\n");
25 
26  printf(" Average Error = %.2f%%\n",error);
27  }
28 
29  return error;
30 
31 }
static int expected[NUM_THREADS]
int quiet
Definition: rapl_overflow.c:18