root / synthbench / euroben / mod2ci / fltimod.f
History | View | Annotate | Download (893 Bytes)
1 |
Module floptime |
---|---|
2 |
! --------------------------------------------------------------------- |
3 |
! --- floptime components keep track of flopcounts and execution times |
4 |
! for the program to be benchmarked. |
5 |
! --------------------------------------------------------------------- |
6 |
Use numerics |
7 |
Implicit None |
8 |
|
9 |
Integer(8) :: flops |
10 |
! --------------------------------------------------------------------- |
11 |
Contains |
12 |
|
13 |
Function wclock() Result (walltime) |
14 |
Use numerics |
15 |
Implicit None |
16 |
|
17 |
Real(l_) :: walltime, cclock |
18 |
! ---------------------------------------------------------------------- |
19 |
|
20 |
walltime = cclock() |
21 |
|
22 |
! ---------------------------------------------------------------------- |
23 |
End Function wclock |
24 |
! ---------------------------------------------------------------------- |
25 |
End module floptime |