diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-06 14:45:42 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-06 14:45:42 +0200 |
commit | 97e0c14633951543a9177d50aafe91ac2d8cbfa5 (patch) | |
tree | 8023e1a884776e39702a07a255e7896d577f9f77 /staging_vespalib | |
parent | 9ad65f905b55fc553a439b1271d1cd81d6c5ef49 (diff) |
Fix format string in SequencedTaskExecutor benchmark.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/tests/sequencedtaskexecutor/sequencedtaskexecutor_benchmark.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staging_vespalib/src/tests/sequencedtaskexecutor/sequencedtaskexecutor_benchmark.cpp b/staging_vespalib/src/tests/sequencedtaskexecutor/sequencedtaskexecutor_benchmark.cpp index 042408d439f..ba82651f1fc 100644 --- a/staging_vespalib/src/tests/sequencedtaskexecutor/sequencedtaskexecutor_benchmark.cpp +++ b/staging_vespalib/src/tests/sequencedtaskexecutor/sequencedtaskexecutor_benchmark.cpp @@ -5,6 +5,7 @@ #include <vespa/vespalib/util/lambdatask.h> #include <vespa/vespalib/util/time.h> #include <atomic> +#include <cinttypes> using vespalib::ISequencedTaskExecutor; using vespalib::SequencedTaskExecutor; @@ -65,6 +66,6 @@ int main(int argc, char **argv) { vespalib::makeLambdaTask([&counter,work_size] { (void) do_work(work_size); counter++; })); } executor.reset(); - fprintf(stderr, "\ntotal time: %zu ms\n", vespalib::count_ms(timer.elapsed())); + fprintf(stderr, "\ntotal time: %" PRId64 " ms\n", vespalib::count_ms(timer.elapsed())); return (size_t(counter) == num_tasks) ? 0 : 1; } |