aboutsummaryrefslogtreecommitdiff
path: root/sys/etc/clktime.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/etc/clktime.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/etc/clktime.x')
-rw-r--r--sys/etc/clktime.x16
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