My Project
 All Classes Files Functions Variables Macros
timer_filtre.F90
Go to the documentation of this file.
2 IMPLICIT NONE
3  PRIVATE
4  REAL :: time
5  REAL :: Last_time
7 CONTAINS
8 
9  SUBROUTINE init_timer
10  time=0
11  last_time=0
12  END SUBROUTINE init_timer
13 
14  SUBROUTINE start_timer
15 
16  CALL cpu_time(last_time)
17 
18  END SUBROUTINE start_timer
19 
20 
21  SUBROUTINE stop_timer
22  REAL :: t
23 
24  CALL cpu_time(t)
25  time=time+t-last_time
26 
27  END SUBROUTINE stop_timer
28 
29  SUBROUTINE print_filtre_timer
30  print *,"Temps CPU passe dans le filtre :",time
31  END SUBROUTINE print_filtre_timer
32 
33 END MODULE timer_filtre