diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-30 15:17:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-30 15:24:37 -0700 |
commit | 81979bc8e213e442acf9f2bef9f6e227602c5b70 (patch) | |
tree | 16c3b38b7d79ef1decdd732d1619ee4c7504b77d /lib/timespec.h | |
parent | 2deeabadbd2d7eaebc49d62f818e60f40159b0ff (diff) | |
download | gnulib-81979bc8e213e442acf9f2bef9f6e227602c5b70.tar.gz |
timespec-add, timespec-sub: new modules
* lib/timespec.h (timespec_add, timespec_sub): New decls.
* lib/timespec-add.c, lib/timespec-sub.c:
* modules/timespec-add, modules/timespec-sub: New files.
Diffstat (limited to 'lib/timespec.h')
-rw-r--r-- | lib/timespec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/timespec.h b/lib/timespec.h index 191cf0660c..acf815c8db 100644 --- a/lib/timespec.h +++ b/lib/timespec.h @@ -65,6 +65,8 @@ timespec_sign (struct timespec a) return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec; } +struct timespec timespec_add (struct timespec, struct timespec); +struct timespec timespec_sub (struct timespec, struct timespec); struct timespec dtotimespec (double); /* Return an approximation to A, of type 'double'. */ |