X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/081e681557eb1b6223fe8f4e2551c506cd0d2d3c..76a6457a1244e6ec178da144bf9b854b169095dd:/tv.h diff --git a/tv.h b/tv.h index 6d46436..60bcfdf 100644 --- 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