Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: base/time_win.cc

Issue 3387011: The submillisecond test was broken in at least two ways. First, the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/time.h ('k') | base/time_win_unittest.cc » ('j') | base/time_win_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698