The Elk Code
Loading...
Searching...
No Matches
timesec.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2008 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
3
! This file is distributed under the terms of the GNU Lesser General Public
4
! License. See the file COPYING for license details.
5
6
!BOP
7
! !ROUTINE: timesec
8
! !INTERFACE:
9
subroutine
timesec
(ts)
10
! !INPUT/OUTPUT PARAMETERS:
11
! ts : system time in seconds (out,real)
12
! !DESCRIPTION:
13
! Outputs the system time in seconds.
14
!
15
! !REVISION HISTORY:
16
! Created September 2010 (JKD)
17
!EOP
18
!BOC
19
implicit none
20
! arguments
21
real
(8),
intent(out)
:: ts
22
! local variables
23
integer
count,count_rate
24
call
system_clock(count=count,count_rate=count_rate)
25
ts=dble(count)/dble(count_rate)
26
end subroutine
27
!EOC
28
timesec
subroutine timesec(ts)
Definition
timesec.f90:10
timesec.f90
Generated by
1.9.8