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:
9subroutine 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
19implicit none
20! arguments
21real(8), intent(out) :: ts
22! local variables
23integer count,count_rate
24call system_clock(count=count,count_rate=count_rate)
25ts=dble(count)/dble(count_rate)
26end subroutine
27!EOC
28
subroutine timesec(ts)
Definition timesec.f90:10