aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/perf_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
commit3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch)
tree61ce41a52cd6e7232cead77818ef265993b2427e /src/datastore/perf_datastore_api.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r--src/datastore/perf_datastore_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c
index cf21ebe44..83be3ad5f 100644
--- a/src/datastore/perf_datastore_api.c
+++ b/src/datastore/perf_datastore_api.c
@@ -245,9 +245,9 @@ run_continuation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
245#endif 245#endif
246 "Stored %llu kB / %lluk ops / %llu ops/s\n", stored_bytes / 1024, /* used size in k */ 246 "Stored %llu kB / %lluk ops / %llu ops/s\n", stored_bytes / 1024, /* used size in k */
247 stored_ops / 1024, /* total operations (in k) */ 247 stored_ops / 1024, /* total operations (in k) */
248 1000 * stored_ops / (1 + 248 1000LL * 1000LL * stored_ops / (1 +
249 GNUNET_TIME_absolute_get_duration 249 GNUNET_TIME_absolute_get_duration
250 (start_time).rel_value)); 250 (start_time).rel_value_us));
251 crc->phase = RP_PUT; 251 crc->phase = RP_PUT;
252 crc->j = 0; 252 crc->j = 0;
253 GNUNET_SCHEDULER_add_continuation (&run_continuation, crc, 253 GNUNET_SCHEDULER_add_continuation (&run_continuation, crc,
@@ -257,7 +257,7 @@ run_continuation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
257 GNUNET_snprintf (gstr, sizeof (gstr), "DATASTORE-%s", plugin_name); 257 GNUNET_snprintf (gstr, sizeof (gstr), "DATASTORE-%s", plugin_name);
258 if ((crc->i == ITERATIONS) && (stored_ops > 0)) 258 if ((crc->i == ITERATIONS) && (stored_ops > 0))
259 GAUGER (gstr, "PUT operation duration", 259 GAUGER (gstr, "PUT operation duration",
260 GNUNET_TIME_absolute_get_duration (start_time).rel_value / 260 GNUNET_TIME_absolute_get_duration (start_time).rel_value_us / 1000LL /
261 stored_ops, "ms/operation"); 261 stored_ops, "ms/operation");
262 GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); 262 GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
263 GNUNET_free (crc); 263 GNUNET_free (crc);