xref: /petsc/src/benchmarks/PetscTime.c (revision 173c062396e103eb3d1a3e577383b37e38b301ab)
1 #include "stdio.h"
2 #include "pinclude/ptime.h"
3 
4 int main( int argc, char **argv)
5 {
6   double x, y;
7 
8   PetscInitialize(&argc, &argv,0,0,0);
9 
10    PetscTime(x);
11    PetscTime(y);
12    PetscTime(y);
13    PetscTime(y);
14    PetscTime(y);
15    PetscTime(y);
16    PetscTime(y);
17    PetscTime(y);
18    PetscTime(y);
19    PetscTime(y);
20    PetscTime(y);
21 
22   fprintf(stderr,"%-15s : %e sec\n","PetscTime",(y-x)/10.0);
23   PetscFinalize();
24   return 0;
25 }
26