Click here to Skip to main content
15,913,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Free software for UI Designing Pin
misspoo2215-Jun-05 0:23
misspoo2215-Jun-05 0:23 
GeneralRe: Free software for UI Designing Pin
Christian Graus15-Jun-05 13:02
protectorChristian Graus15-Jun-05 13:02 
GeneralCapture keystroke Pin
Anonymous14-Jun-05 0:11
Anonymous14-Jun-05 0:11 
GeneralRe: Capture keystroke Pin
Christian Graus14-Jun-05 1:40
protectorChristian Graus14-Jun-05 1:40 
GeneralRe: Capture keystroke Pin
Anonymous14-Jun-05 17:02
Anonymous14-Jun-05 17:02 
GeneralRe: Capture keystroke Pin
Christian Graus14-Jun-05 17:04
protectorChristian Graus14-Jun-05 17:04 
GeneralExecution time of code. Pin
Alsvha13-Jun-05 20:36
Alsvha13-Jun-05 20:36 
GeneralRe: Execution time of code. Pin
Dave Kreskowiak14-Jun-05 1:50
mveDave Kreskowiak14-Jun-05 1:50 
If you read the documentation for DateTime.Now(), you'll find that the accuracy and resolution of the clock is very dependant on the hardware clock and only to about 10 milliseonds. Since your results are coming in very close to the clocks resolution, it is very possible to get calculated results of 0 milliseconds, even while using the Ticks counter.

The number of Ticks per Millisecond is constant at 10,000 to 1. But, there is no way in hell that DateTime.Now() will ever return a Tick count that accurately.

If you want to more accurately time something that can execute quicker than about 20 milliseconds, you'll have to use a high-resolution timer library. The .NET Framework doesn't come with one, well, 2.0 does anyway. This library, or class, will have to use the Win32 functions QueryPerformanceCounter and QueryPerformanceFrequency to get sub-millisecond accuracy. You can find an example of writing a wrapper class for these functions here[^] on MSDN. It's written in C#, but is easily converted to VB.NET if need be. There's even a few articles here on CodeProject. Just search the articles for "QueryPerformanceCounter".


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralNeed A code run with active directory Pin
y_mmohd13-Jun-05 18:42
y_mmohd13-Jun-05 18:42 
GeneralRe: Need A code run with active directory Pin
Dave Kreskowiak14-Jun-05 4:29
mveDave Kreskowiak14-Jun-05 4:29 
GeneralRe: Need A code run with active directory Pin
Anonymous14-Jun-05 4:52
Anonymous14-Jun-05 4:52 
GeneralRe: Need A code run with active directory Pin
Dave Kreskowiak14-Jun-05 2:31
mveDave Kreskowiak14-Jun-05 2:31 
GeneralOutlook Calendar Information Pin
KaptinKrunch13-Jun-05 14:22
KaptinKrunch13-Jun-05 14:22 
Questionhow to compare the text of two html pages Pin
Mohsen Saad13-Jun-05 14:22
Mohsen Saad13-Jun-05 14:22 
AnswerRe: how to compare the text of two html pages Pin
Christian Graus13-Jun-05 14:25
protectorChristian Graus13-Jun-05 14:25 
GeneralRe: how to compare the text of two html pages Pin
Mohsen Saad14-Jun-05 8:15
Mohsen Saad14-Jun-05 8:15 
GeneralRe: how to compare the text of two html pages Pin
Christian Graus14-Jun-05 13:49
protectorChristian Graus14-Jun-05 13:49 
GeneralRe: how to compare the text of two html pages Pin
Mohsen Saad15-Jun-05 5:32
Mohsen Saad15-Jun-05 5:32 
GeneralRe: how to compare the text of two html pages Pin
Christian Graus15-Jun-05 13:09
protectorChristian Graus15-Jun-05 13:09 
GeneralMap Area to onclick event Pin
asalyon13-Jun-05 13:29
asalyon13-Jun-05 13:29 
GeneralRe: Map Area to onclick event Pin
Christian Graus13-Jun-05 14:06
protectorChristian Graus13-Jun-05 14:06 
GeneralRe: Map Area to onclick event Pin
asalyon13-Jun-05 15:21
asalyon13-Jun-05 15:21 
GeneralRe: Map Area to onclick event Pin
Christian Graus13-Jun-05 15:33
protectorChristian Graus13-Jun-05 15:33 
GeneralRe: Map Area to onclick event Pin
asalyon13-Jun-05 16:23
asalyon13-Jun-05 16:23 
GeneralRe: Map Area to onclick event Pin
Christian Graus13-Jun-05 16:26
protectorChristian Graus13-Jun-05 16:26 

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.