The TELEMAC-MASCARET system  trunk
time_in_seconds.f
Go to the documentation of this file.
1 ! ********************************
2  INTEGER FUNCTION time_in_seconds
3 ! ********************************
4 !
5  &()
6 !
7 !***********************************************************************
8 ! BIEF V6P1 21/08/2010
9 !***********************************************************************
10 !
11 !brief MACHINE TIME IN SECONDS.
12 !
13 !history J-M HERVOUET (LNH)
14 !+ 04/08/98
15 !+ V5P1
16 !+
17 !
18 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
19 !+ 13/07/2010
20 !+ V6P0
21 !+ Translation of French comments within the FORTRAN sources into
22 !+ English comments
23 !
24 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
25 !+ 21/08/2010
26 !+ V6P0
27 !+ Creation of DOXYGEN tags for automated documentation and
28 !+ cross-referencing of the FORTRAN sources
29 !
30 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 !
34  IMPLICIT NONE
35 !
36  INTEGER TEMPS,PARSEC
37 !
38 !----------------------------------------------------------------------
39 !
40  CALL system_clock(count=temps,count_rate=parsec)
41  time_in_seconds = temps / parsec
42 !
43 !----------------------------------------------------------------------
44 !
45  RETURN
46  END
integer function time_in_seconds()