diff options
Diffstat (limited to 'sys/etc/clktime.x')
-rw-r--r-- | sys/etc/clktime.x | 16 |
1 files changed, 16 insertions, 0 deletions
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 |