2007-07-02 17:53:19 -04:00
|
|
|
real function sec_midn()
|
|
|
|
|
|
|
|
real*8 sec8,hrtime
|
|
|
|
|
2007-12-21 13:40:47 -05:00
|
|
|
#ifdef CVF
|
2007-07-02 17:53:19 -04:00
|
|
|
sec_midn=secnds(0.0)
|
|
|
|
#else
|
|
|
|
sec8=hrtime()
|
|
|
|
sec_midn=mod(sec8,86400.d0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return
|
|
|
|
end function sec_midn
|
|
|
|
|
|
|
|
subroutine sleep_msec(n)
|
|
|
|
|
2007-12-21 13:40:47 -05:00
|
|
|
#ifdef CVF
|
2007-07-02 17:53:19 -04:00
|
|
|
use dflib
|
|
|
|
#endif
|
|
|
|
|
2007-12-21 13:40:47 -05:00
|
|
|
#ifdef CVF
|
2007-07-02 17:53:19 -04:00
|
|
|
call sleepqq(n)
|
|
|
|
#else
|
2007-12-21 13:40:47 -05:00
|
|
|
call usleep(1000*n)
|
2007-07-02 17:53:19 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return
|
|
|
|
end subroutine sleep_msec
|