chiark / gitweb /
New function `tv_addl' to add a literal to a time value.
[mLib] / tv.h
diff --git a/tv.h b/tv.h
index 6d464365fb698d273f407a12b093002ef083e26c..60bcfdf3811897f331b31964642329d8390c1df6 100644 (file)
--- a/tv.h
+++ b/tv.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tv.h,v 1.3 1999/05/06 19:51:36 mdw Exp $
+ * $Id: tv.h,v 1.4 1999/05/17 20:37:25 mdw Exp $
  *
  * Manipulation of timeval structures
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: tv.h,v $
+ * Revision 1.4  1999/05/17 20:37:25  mdw
+ * New function `tv_addl' to add a literal to a time value.
+ *
  * Revision 1.3  1999/05/06 19:51:36  mdw
  * Reformatted the LGPL notice a little bit.
  *
@@ -68,6 +71,21 @@ extern void tv_add(struct timeval */*dst*/,
                   const struct timeval */*a*/,
                   const struct timeval */*b*/);
 
+/* --- @tv_addl@ --- *
+ *
+ * Arguments:  @struct timeval *dst@ = destination block
+ *             @const struct timeval *a@ = source blocks
+ *             @time_t sec@, @unsigned long usec@ = time to add
+ *
+ * Returns:    ---
+ *
+ * Use:                Adds a literal time in seconds and microseconds.
+ */
+
+extern void tv_addl(struct timeval */*dst*/,
+                   const struct timeval */*a*/,
+                   time_t /*sec*/, unsigned long /*usec*/);
+
 /* --- @tv_sub@ --- *
  *
  * Arguments:  @struct timeval *dst@ = destination block