summaryrefslogtreecommitdiff
path: root/rpmio/tsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio/tsw.c')
-rw-r--r--rpmio/tsw.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/rpmio/tsw.c b/rpmio/tsw.c
deleted file mode 100644
index e68f36bf8..000000000
--- a/rpmio/tsw.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "system.h"
-#include <rpm/rpmsw.h>
-#include "debug.h"
-
-int
-main(int argc, char *argv[])
-{
- struct rpmsw_s begin, end;
- rpmtime_t diff;
- int scale = 1000 * 1000;
- int nsecs = 5;
-
- diff = rpmswInit();
-
-fprintf(stderr, "*** Sleeping for %d secs ... ", nsecs);
- (void) rpmswNow(&begin);
- sleep(nsecs);
- (void) rpmswNow(&end);
-
- diff = rpmswDiff(&end, &begin);
-fprintf(stderr, "measured %u.%06u secs\n", (unsigned)diff/scale, (unsigned)diff%scale);
-
- return 0;
-
-}