diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-19 17:12:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 22:20:33 +0300 |
commit | fe18c518cf476ea5a2c3eede8bf6b994ec3105f2 (patch) | |
tree | 16f5ebb14ce1bd541412bf375ba5a44b5341c6b1 /xsd-examples/cxx/tree/performance/serialization.cxx | |
parent | a8ce5c380c69539fe0c7c62c397634d9d0c9fde2 (diff) |
Various fixes
Diffstat (limited to 'xsd-examples/cxx/tree/performance/serialization.cxx')
-rw-r--r-- | xsd-examples/cxx/tree/performance/serialization.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xsd-examples/cxx/tree/performance/serialization.cxx b/xsd-examples/cxx/tree/performance/serialization.cxx index e81fcbd..e691b82 100644 --- a/xsd-examples/cxx/tree/performance/serialization.cxx +++ b/xsd-examples/cxx/tree/performance/serialization.cxx @@ -105,7 +105,8 @@ serialization (const char* file, unsigned long iter) cerr << " time: " << time << " sec" << endl; - double ms (time.sec () * 1000000ULL + time.nsec () / 1000ULL); + double ms (static_cast<double> ( + time.sec () * 1000000ULL + time.nsec () / 1000ULL)); // Calculate throughput in documents/sec. // |