Last change
on this file since 5192 was
5120,
checked in by abarral, 4 months ago
|
enforce PRIVATE by default in several modules, expose PUBLIC as needed in filtrez/
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
602 bytes
|
Line | |
---|
1 | MODULE lmdz_timer_filtre |
---|
2 | IMPLICIT NONE |
---|
3 | PRIVATE |
---|
4 | PUBLIC :: init_timer, start_timer, stop_timer, print_filtre_timer |
---|
5 | |
---|
6 | REAL :: time, 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 lmdz_timer_filtre |
---|
Note: See
TracBrowser
for help on using the repository browser.