From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/etc/clktime.x | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sys/etc/clktime.x (limited to 'sys/etc/clktime.x') diff --git a/sys/etc/clktime.x b/sys/etc/clktime.x new file mode 100644 index 00000000..84155919 --- /dev/null +++ b/sys/etc/clktime.x @@ -0,0 +1,16 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# CLKTIME -- Get the current clock time (local standard time) in units +# of seconds since 00:00:00 01-Jan-80. This can be broken down into days, +# hours, seconds, etc. with BRKTIME, or printed as a date/time string with +# CNVTIME. + +long procedure clktime (old_time) + +long old_time, new_time +long cpu_time + +begin + call zgtime (new_time, cpu_time) + return (new_time - old_time) +end -- cgit