L-BFGS-B  3.0
Large-scale Bound-constrained Optimization
timer.f
Go to the documentation of this file.
1 c> \file timer.f
2 
3 c> \brief This routine computes cpu time in double precision.
4 c>
5 c> This routine computes cpu time in double precision; it makes use of
6 c> the intrinsic f90 cpu_time therefore a conversion type is
7 c> needed.
8 c>
9 c> @param ttime CPU time in double precision
10  subroutine timer(ttime)
11  double precision ttime
12 c
13  real temp
14 c
15 c J.L Morales Departamento de Matematicas,
16 c Instituto Tecnologico Autonomo de Mexico
17 c Mexico D.F.
18 c
19 c J.L Nocedal Department of Electrical Engineering and
20 c Computer Science.
21 c Northwestern University. Evanston, IL. USA
22 c
23 c January 21, 2011
24 c
25  temp = sngl(ttime)
26  call cpu_time(temp)
27  ttime = dble(temp)
28 
29  return
30 
31  end
32 
subroutine timer(ttime)
This routine computes cpu time in double precision.
Definition: timer.f:11