Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
GeneralRe: High speed/precision timer possible? Pin
Rob Philpott4-May-06 4:50
Rob Philpott4-May-06 4:50 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely4-May-06 5:53
Dan Neely4-May-06 5:53 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely4-May-06 8:50
Dan Neely4-May-06 8:50 
GeneralRe: High speed/precision timer possible? Pin
Rob Philpott4-May-06 12:49
Rob Philpott4-May-06 12:49 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely5-May-06 2:14
Dan Neely5-May-06 2:14 
AnswerRe: High speed/precision timer possible? Pin
Guffa4-May-06 6:28
Guffa4-May-06 6:28 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely4-May-06 7:18
Dan Neely4-May-06 7:18 
GeneralRe: High speed/precision timer possible? Pin
Phil C5-May-06 19:08
Phil C5-May-06 19:08 
I recognize those. That's the raw Win32 API for the "High Resolution Timer". It's been around for years and is the baseline timer for programs like Windows Media Player and midi players that need to keep pace or the playback of video and audio is goofy.

It's fairly straightforward (at least it used to be, who knows under the modern .NET managed world of today). Give it a try. The only thing you have to do is check to verify that a High Performance counter is available by verifying the return value of QueryPerformancecounter does not return 0. I've actually never seen a system return 0, but there always a first time.

I'm surprised and not surprised that multimedia timers only work under XP. Especially since I've been using them in Visual C++ dating back to version 5.0 and windows 95.

Just one more example of a mediocre/partial port of basic functions under Csharp and .NET. Oops, sorry for the rant, umm...Csharp is gr8 .NET is awesome...there, that's better.
Questionwindows application deployment Pin
TheEagle4-May-06 4:13
TheEagle4-May-06 4:13 
AnswerRe: windows application deployment Pin
MoustafaS4-May-06 4:31
MoustafaS4-May-06 4:31 
GeneralRe: windows application deployment Pin
TheEagle4-May-06 4:40
TheEagle4-May-06 4:40 
AnswerRe: windows application deployment Pin
MoustafaS4-May-06 4:42
MoustafaS4-May-06 4:42 
GeneralRe: windows application deployment Pin
TheEagle4-May-06 4:49
TheEagle4-May-06 4:49 
QuestionFinding the most common string in an ArrayList Pin
Subterranean4-May-06 4:11
Subterranean4-May-06 4:11 
AnswerRe: Finding the most common string in an ArrayList Pin
Josh Smith4-May-06 5:15
Josh Smith4-May-06 5:15 
AnswerRe: Finding the most common string in an ArrayList Pin
Wjousts4-May-06 6:45
Wjousts4-May-06 6:45 
QuestionCrystal report Pin
Aayush Singh4-May-06 3:34
Aayush Singh4-May-06 3:34 
AnswerRe: Crystal report Pin
ranandbe4-May-06 20:04
ranandbe4-May-06 20:04 
Questionhow does accelerate drawing operation? Pin
Sasuko4-May-06 3:13
Sasuko4-May-06 3:13 
AnswerRe: how does accelerate drawing operation? Pin
MoustafaS4-May-06 4:35
MoustafaS4-May-06 4:35 
GeneralRe: how does accelerate drawing operation? Pin
Susuko4-May-06 9:57
Susuko4-May-06 9:57 
GeneralRe: how does accelerate drawing operation? Pin
Guffa4-May-06 6:29
Guffa4-May-06 6:29 
GeneralRe: how does accelerate drawing operation? Pin
Susuko4-May-06 9:58
Susuko4-May-06 9:58 
AnswerRe: how does accelerate drawing operation? Pin
A.Gharighi4-May-06 8:20
A.Gharighi4-May-06 8:20 
GeneralRe: how does accelerate drawing operation? Pin
Susuko4-May-06 9:56
Susuko4-May-06 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.