lintian doesn't like orphan packages with uploaders...
[debian/amanda] / common-src / clock.h
index 8d3922e2dd2694e3f3d916c0409d9febb4776c1a..0a6617043f8cf108d7fb44c8d1b77ea0b8605c8c 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -25,7 +26,7 @@
  *                        University of Maryland at College Park
  */
 /*
- * $Id: clock.h,v 1.2.2.2 2002/03/31 21:01:33 jrjackson Exp $
+ * $Id: clock.h,v 1.6 2006/05/25 01:47:11 johnfranks Exp $
  *
  * interface for timing functions
  */
 
 #include "amanda.h"
 
-typedef struct times_s {
-    struct timeval r;
+typedef GTimeVal times_t;
 
-#ifdef INSTRUMENTATION
-    struct timeval u,s;
-#endif
-} times_t;
+/* NOT THREAD SAFE */
+void startclock(void);
+times_t stopclock(void);
+times_t curclock(void);
+char * walltime_str(times_t t);
+int clock_is_running(void);
 
-extern times_t times_zero, start_time;
+/* Thread safe */
+times_t timeadd(times_t a, times_t b);
+#define timesadd(x, y) timeadd(x, y)
+
+times_t timesub(times_t a, times_t b);
+#define timessub(x, y) timesub(x, y)
+
+double g_timeval_to_double(GTimeVal v);
+
+void amanda_gettimeofday(struct timeval * timeval_time);
 
-void startclock P((void));
-times_t stopclock P((void));
-times_t curclock P((void));
-times_t timesadd P((times_t a, times_t b));
-times_t timessub P((times_t a, times_t b));
-char * times_str P((times_t t));
-char * walltime_str P((times_t t));
-int clock_is_running P((void));
 
 #endif /* CLOCK_H */