]> mj.ucw.cz Git - libucw.git/blobdiff - lib/timer.c
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / lib / timer.c
index 802945187c4b2fbd0582924117fa2e00fbea13b6..86a2d1984cd06ad5dec760ba572def3978ea8051 100644 (file)
@@ -1,15 +1,18 @@
 /*
- *     Sherlock Library -- Execution Timing
+ *     UCW Library -- Execution Timing
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
+#include "lib/lib.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
 
-#include "lib/lib.h"
-
 static struct timeval last_tv;
 
 uns
@@ -41,3 +44,9 @@ init_timer(void)
 {
   gettimeofday(&last_tv, NULL);
 }
+
+void
+get_last_timeval(struct timeval *tv)
+{
+  *tv = last_tv;
+}