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/core/test_core_api_reliability.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index 149a49225..29f39585e 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -127,10 +127,10 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
127 | p1.th = NULL; | 127 | p1.th = NULL; |
128 | GNUNET_TRANSPORT_disconnect (p2.th); | 128 | GNUNET_TRANSPORT_disconnect (p2.th); |
129 | p2.th = NULL; | 129 | p2.th = NULL; |
130 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; | 130 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; |
131 | FPRINTF (stderr, "\nThroughput was %llu kb/s\n", | 131 | FPRINTF (stderr, "\nThroughput was %llu kb/s\n", |
132 | total_bytes * 1000 / 1024 / delta); | 132 | total_bytes * 1000000LL / 1024 / delta); |
133 | GAUGER ("CORE", "Core throughput/s", total_bytes * 1000 / 1024 / delta, | 133 | GAUGER ("CORE", "Core throughput/s", total_bytes * 1000000LL / 1024 / delta, |
134 | "kb/s"); | 134 | "kb/s"); |
135 | ok = 0; | 135 | ok = 0; |
136 | } | 136 | } |