Clarify and simplify test output
diff --git a/xmltest.cpp b/xmltest.cpp
index 10c7dba..baeaf1d 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -2112,10 +2112,11 @@
#endif
#if defined( _MSC_VER )
- printf("\nParsing %s of dream.xml: %.3f milli-seconds\n", note, 1000.0 * (double)(end - start) / ((double)freq * (double)COUNT));
+ const double duration = 1000.0 * (double)(end - start) / ((double)freq * (double)COUNT);
#else
- printf("\nParsing %s of dream.xml: %.3f milli-seconds\n", note, (double)(cend - cstart) / (double)COUNT);
+ const double duration = (double)(cend - cstart) / (double)COUNT;
#endif
+ printf("\nParsing dream.xml (%s): %.3f milli-seconds\n", note, duration);
}
#if defined( _MSC_VER ) && defined( DEBUG )