RE: C# Thread.Sleep malfunction
From: Jim Happ (JimHapp_at_discussions.microsoft.com)
Date: 10/22/04
- Next message: Chuck P: "theads and events"
- Previous message: David Davis: "C# standard eddition and SQL server standard eddition"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 22 Oct 2004 09:17:13 -0700
In XP Pro I have found Sleep() has a 15ms resolution as the default and
GetTickCount() has a 1ms resolution by default.
If you are running on a Dell with all the stupid multimedia software they
install for you, often some proccess is running which has called
timeBeginPeriod(1). This reverses the numbers just quoted. Listing to music
with Windows Media Player does this as well. But this is not the default
behavior.
Fortunately, the performance counter routines seem independent of this
nonsense.
- Next message: Chuck P: "theads and events"
- Previous message: David Davis: "C# standard eddition and SQL server standard eddition"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|