PIPS
benchmark.c File Reference
#include <unistd.h>
+ Include dependency graph for benchmark.c:

Go to the source code of this file.

Functions

int benchmark (int n)
 
int benchmark_sleep ()
 
int main ()
 

Function Documentation

◆ benchmark()

int benchmark ( int  n)

Definition at line 4 of file benchmark.c.

5 {
6  int i,j;
7  for (i=0;i<n;i++)
8  j=j*i*n/2;
9  return j;
10 }

◆ benchmark_sleep()

int benchmark_sleep ( )

Definition at line 12 of file benchmark.c.

13 {
14  usleep(100000);
15 }

Referenced by main().

+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 17 of file benchmark.c.

18 {
20  return 0;
21 }
int benchmark_sleep()
Definition: benchmark.c:12

References benchmark_sleep().

+ Here is the call graph for this function: