diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 08:58:51 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 08:58:51 +0000 |
commit | c5324208455858b3393a3e1887366f858c588a2d (patch) | |
tree | f6bc89be1a437d7aa1c6fbd5c0dc98ad2b3ff5b4 /base/time.h | |
parent | 08de3cde4d95e9c962aee2386d7297d561404513 (diff) | |
download | chromium_src-c5324208455858b3393a3e1887366f858c588a2d.zip chromium_src-c5324208455858b3393a3e1887366f858c588a2d.tar.gz chromium_src-c5324208455858b3393a3e1887366f858c588a2d.tar.bz2 |
Reapply r1633 (which was reverted by r1635), with some additional modifications. Consolidate all timer resolution code to time.h, and always depend on TimeTicks::Now for 1ms resolution.
Review URL: http://codereview.chromium.org/1806
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time.h')
-rw-r--r-- | base/time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/time.h b/base/time.h index c25419f..cc66eda 100644 --- a/base/time.h +++ b/base/time.h @@ -436,9 +436,8 @@ class TimeTicks { int64 ticks_; #if defined(OS_WIN) - // The function to use for counting ticks. - typedef int (__stdcall *TickFunction)(void); - static TickFunction tick_function_; + typedef DWORD (*TickFunctionType)(void); + static TickFunctionType SetMockTickFunction(TickFunctionType ticker); #endif }; |