summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-14 11:57:48 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-14 11:57:48 +0800
commit143f2410225fa50aabfb9932a63123f720328675 (patch)
tree7cf7bb3507e87707bd350e8895dd453ddd70b804 /src
parenta87760026d161e19375d0c01f9163147442c2cb7 (diff)
downloadmrust-143f2410225fa50aabfb9932a63123f720328675.tar.gz
main - Move elapsed time to start of line
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index adea74f5..7b3fb2f4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -70,7 +70,12 @@ Rv CompilePhase(const char *name, Fcn f) {
auto rv = f();
auto end = clock();
g_cur_phase = "";
- ::std::cout << name << ": DONE (" << ::std::fixed << ::std::setprecision(2) << static_cast<double>(end - start) / static_cast<double>(CLOCKS_PER_SEC) << " s)" << ::std::endl;
+
+ //::std::cout << name << ": DONE (" << ::std::fixed << ::std::setprecision(2) << static_cast<double>(end - start) / static_cast<double>(CLOCKS_PER_SEC) << " s)" << ::std::endl;
+
+ ::std::cout <<"(" << ::std::fixed << ::std::setprecision(2) << static_cast<double>(end - start) / static_cast<double>(CLOCKS_PER_SEC) << " s) ";
+ ::std::cout << name << ": DONE";
+ ::std::cout << ::std::endl;
return rv;
}
template <typename Fcn>