diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/datacache/perf_datacache.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/datacache/perf_datacache.c')
-rw-r--r-- | src/datacache/perf_datacache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c index 84775a314..027999d22 100644 --- a/src/datacache/perf_datacache.c +++ b/src/datacache/perf_datacache.c | |||
@@ -96,7 +96,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
96 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES)); | 96 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start), GNUNET_YES)); |
97 | GNUNET_snprintf (gstr, sizeof (gstr), "DATACACHE-%s", plugin_name); | 97 | GNUNET_snprintf (gstr, sizeof (gstr), "DATACACHE-%s", plugin_name); |
98 | GAUGER (gstr, "Time to PUT item in datacache", | 98 | GAUGER (gstr, "Time to PUT item in datacache", |
99 | GNUNET_TIME_absolute_get_duration (start).rel_value / ITERATIONS, | 99 | GNUNET_TIME_absolute_get_duration (start).rel_value_us / 1000LL / ITERATIONS, |
100 | "ms/item"); | 100 | "ms/item"); |
101 | start = GNUNET_TIME_absolute_get (); | 101 | start = GNUNET_TIME_absolute_get (); |
102 | memset (&k, 0, sizeof (struct GNUNET_HashCode)); | 102 | memset (&k, 0, sizeof (struct GNUNET_HashCode)); |
@@ -116,7 +116,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
116 | ITERATIONS - found); | 116 | ITERATIONS - found); |
117 | if (found > 0) | 117 | if (found > 0) |
118 | GAUGER (gstr, "Time to GET item from datacache", | 118 | GAUGER (gstr, "Time to GET item from datacache", |
119 | GNUNET_TIME_absolute_get_duration (start).rel_value / found, | 119 | GNUNET_TIME_absolute_get_duration (start).rel_value_us / 1000LL / found, |
120 | "ms/item"); | 120 | "ms/item"); |
121 | GNUNET_DATACACHE_destroy (h); | 121 | GNUNET_DATACACHE_destroy (h); |
122 | ASSERT (ok == 0); | 122 | ASSERT (ok == 0); |