/*
- * Sherlock Library -- Prime Number Tests
+ * 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.h"
-
static struct timeval last_tv;
uns
{
gettimeofday(&last_tv, NULL);
}
+
+void
+get_last_timeval(struct timeval *tv)
+{
+ *tv = last_tv;
+}