| Index: runtime/lib/stopwatch.cc
|
| diff --git a/runtime/lib/stopwatch.cc b/runtime/lib/stopwatch.cc
|
| index ce8951de29d9adce285a92d2bf6017d339796d95..934aba568e6849f3153a1ee354c33a79824cf262 100644
|
| --- a/runtime/lib/stopwatch.cc
|
| +++ b/runtime/lib/stopwatch.cc
|
| @@ -10,14 +10,12 @@
|
| namespace dart {
|
|
|
| DEFINE_NATIVE_ENTRY(Stopwatch_now, 0) {
|
| - // TODO(iposva): investigate other hi-res time sources such as cycle count.
|
| - return Integer::New(OS::GetCurrentMonotonicMicros());
|
| + return Integer::New(OS::GetCurrentMonotonicTicks());
|
| }
|
|
|
|
|
| DEFINE_NATIVE_ENTRY(Stopwatch_frequency, 0) {
|
| - // TODO(iposva): investigate other hi-res time sources such as cycle count.
|
| - return Integer::New(1000000);
|
| + return Integer::New(OS::GetCurrentMonotonicFrequency());
|
| }
|
|
|
| } // namespace dart
|
|
|