OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 // Windows Timer Primer | 6 // Windows Timer Primer |
7 // | 7 // |
8 // A good article: http://www.ddj.com/windows/184416651 | 8 // A good article: http://www.ddj.com/windows/184416651 |
9 // A good mozilla bug: http://bugzilla.mozilla.org/show_bug.cgi?id=363258 | 9 // A good mozilla bug: http://bugzilla.mozilla.org/show_bug.cgi?id=363258 |
10 // | 10 // |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 } | 393 } |
394 | 394 |
395 // static | 395 // static |
396 TimeTicks TimeTicks::HighResNow() { | 396 TimeTicks TimeTicks::HighResNow() { |
397 return TimeTicks() + Singleton<HighResNowSingleton>::get()->Now(); | 397 return TimeTicks() + Singleton<HighResNowSingleton>::get()->Now(); |
398 } | 398 } |
399 | 399 |
400 // static | 400 // static |
401 int64 TimeTicks::GetQPCDriftMicroseconds() { | 401 int64 TimeTicks::GetQPCDriftMicroseconds() { |
402 return Singleton<HighResNowSingleton>::get()->GetQPCDriftMicroseconds(); | 402 return Singleton<HighResNowSingleton>::get()->GetQPCDriftMicroseconds(); |
| 403 } |
| 404 |
| 405 // static |
| 406 bool TimeTicks::IsHighResClockWorking() { |
| 407 return Singleton<HighResNowSingleton>::get()->IsUsingHighResClock(); |
403 } | 408 } |
OLD | NEW |