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

Unified Diff: base/event_recorder.cc

Issue 1806: Time singleton and resolution changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | base/message_loop.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/event_recorder.cc
===================================================================
--- base/event_recorder.cc (revision 1835)
+++ base/event_recorder.cc (working copy)
@@ -53,9 +53,6 @@
return false;
}
- // Set the faster clock, if possible.
- ::timeBeginPeriod(1);
-
// Set the recording hook. JOURNALRECORD can only be used as a global hook.
journal_hook_ = ::SetWindowsHookEx(WH_JOURNALRECORD, StaticRecordWndProc,
GetModuleHandle(NULL), 0);
@@ -79,8 +76,6 @@
return;
}
- ::timeEndPeriod(1);
-
DCHECK(file_ != NULL);
fclose(file_);
file_ = NULL;
@@ -109,9 +104,6 @@
return false;
}
- // Set the faster clock, if possible.
- ::timeBeginPeriod(1);
-
// Playback time is tricky. When playing back, we read a series of events,
// each with timeouts. Simply subtracting the delta between two timers will
// lead to fast playback (about 2x speed). The API has two events, one
@@ -150,8 +142,6 @@
fclose(file_);
file_ = NULL;
- ::timeEndPeriod(1);
-
journal_hook_ = NULL;
is_playing_ = false;
}
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | base/message_loop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698