aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/debug/dgptime.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/digiphot/photcal/debug/dgptime.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/photcal/debug/dgptime.x')
-rw-r--r--noao/digiphot/photcal/debug/dgptime.x21
1 files changed, 21 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/debug/dgptime.x b/noao/digiphot/photcal/debug/dgptime.x
new file mode 100644
index 00000000..e7cb9ae9
--- /dev/null
+++ b/noao/digiphot/photcal/debug/dgptime.x
@@ -0,0 +1,21 @@
+include <time.h>
+
+
+# DG_PTIME - Put time stamp into a text file
+
+procedure dg_ptime (fd, label)
+
+int fd # log file descriptor
+char label[ARB] # string label
+
+char str[SZ_TIME] # time string
+
+long clktime()
+
+begin
+ call cnvtime (clktime (long (0)), str, SZ_TIME)
+
+ call fprintf (fd, "\n**** %s **** (%s) ****\n")
+ call pargstr (str)
+ call pargstr (label)
+end