Index: runtime/vm/scope_timer.h |
diff --git a/runtime/vm/scope_timer.h b/runtime/vm/scope_timer.h |
index 85119701a8e26a0e4c4b4fdadb56ac3cc2014dc2..04abb51e2044ce8466342a56aeea54196bdc7993 100644 |
--- a/runtime/vm/scope_timer.h |
+++ b/runtime/vm/scope_timer.h |
@@ -5,6 +5,8 @@ |
#ifndef VM_SCOPE_TIMER_H_ |
#define VM_SCOPE_TIMER_H_ |
+#include "platform/globals.h" |
+ |
namespace dart { |
// Simple utility class for timing a block of code. |
@@ -31,7 +33,8 @@ class ScopeTimer : public ValueObject { |
return; |
} |
int64_t elapsed = GetElapsed(); |
- OS::Print("%s took %" Pd64 " micros.\n", name_, elapsed); |
+ double seconds = MicrosecondsToSeconds(elapsed); |
+ OS::Print("%s: %f seconds (%" Pd64 " \u00B5)\n", name_, seconds, elapsed); |
rmacnak
2015/03/02 22:25:26
XX u -> XX us
Cutch
2015/03/02 22:48:19
Done.
|
} |
private: |