/*
- * Sherlock Library -- Database Manager -- Tests and Benchmarks
+ * UCW Library -- Database Manager -- Tests and Benchmarks
*
- * (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ * (c) 1999 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
#if 1
#define NAME "GDBM"
#endif
-#include <getopt.h>
+#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <sys/stat.h>
uns ks, vs, vs2, perc, cnt;
char *ch;
int dont_delete = 0;
+ timestamp_t timer;
- initlog("dbtest");
+ log_init("dbtest");
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
while ((c = getopt(argc, argv, "c:p:k:n:d:vsStF")) >= 0)
while (optind < argc)
{
char *o = argv[optind++];
- init_timer();
+ init_timer(&timer);
switch (*o)
{
case 'c':
help();
}
sdbm_sync(d);
- printf("%d ms\n", get_timer());
+ printf("%d ms\n", get_timer(&timer));
}
verb("CLOSE\n");