|
@@ -34,17 +34,17 @@ static bool cmp(const char *obj, const char *key)
|
|
|
HTABLE_DEFINE_TYPE(char, strkey, hash_str, cmp, htable_str);
|
|
HTABLE_DEFINE_TYPE(char, strkey, hash_str, cmp, htable_str);
|
|
|
|
|
|
|
|
/* Nanoseconds per operation */
|
|
/* Nanoseconds per operation */
|
|
|
-static size_t normalize(const struct timespec *start,
|
|
|
|
|
- const struct timespec *stop,
|
|
|
|
|
|
|
+static size_t normalize(const struct timeabs *start,
|
|
|
|
|
+ const struct timeabs *stop,
|
|
|
unsigned int num)
|
|
unsigned int num)
|
|
|
{
|
|
{
|
|
|
- return time_to_nsec(time_divide(time_sub(*stop, *start), num));
|
|
|
|
|
|
|
+ return time_to_nsec(time_divide(time_between(*stop, *start), num));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
int main(int argc, char *argv[])
|
|
|
{
|
|
{
|
|
|
size_t i, j, num;
|
|
size_t i, j, num;
|
|
|
- struct timespec start, stop;
|
|
|
|
|
|
|
+ struct timeabs start, stop;
|
|
|
struct htable_str ht;
|
|
struct htable_str ht;
|
|
|
char **words, **misswords;
|
|
char **words, **misswords;
|
|
|
|
|
|