|
-
Jul 10th, 2002, 12:06 PM
#1
Thread Starter
Black Cat
Low Level GetTickCount?
Code:
Private Declare Function NtGetTickCount Lib "ntdll.dll" () As Long
seems to work fine for me under Windows 2000. Anyone know how to tell for sure if the Win32 GetTickCount API is a wrapper around this native API? Because if its a lower level, it might be somewhat more efficient for debug time testing. Then again, the 10ms resolution of accuracy might cancel out a difference.
Thanks.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 10th, 2002, 01:12 PM
#2
Frenzied Member
VB Code:
Imports System
Imports System.Environment
Public Module modmain
Sub Main()
'The KPD-Team 2001
'URL: [url]http://www.allapi.net/dotnet/[/url]
Console.WriteLine("The number of minutes that " + _
"have elapsed since the system was started " + _
"is " + (TickCount/1000/60).ToString)
End Sub
End Module
-
Jul 10th, 2002, 02:08 PM
#3
Thread Starter
Black Cat
Originally posted by Shawn N
VB Code:
Imports System
Imports System.Environment
Public Module modmain
Sub Main()
'The KPD-Team 2001
'URL: [url]http://www.allapi.net/dotnet/[/url]
Console.WriteLine("The number of minutes that " + _
"have elapsed since the system was started " + _
"is " + (TickCount/1000/60).ToString)
End Sub
End Module
??? What does that have to do with my question?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 10th, 2002, 03:26 PM
#4
The most efficient high-resolution timer is QueryPerformanceCounter. I believe it's accurate down to the nanosecond.
And it's supported in both WinNT and Win9x.
-
Jul 10th, 2002, 07:52 PM
#5
PowerPoster
Shawn, its that VB.NET?
i come across that the nanosecond, but it also depend on the hardware right? Meg
-
Jul 11th, 2002, 04:17 PM
#6
Frenzied Member
I don't know what I was thinking. Yea, that's VB.Net
-
Jul 12th, 2002, 11:22 PM
#7
Originally posted by Chris
Shawn, its that VB.NET?
i come across that the nanosecond, but it also depend on the hardware right? Meg
Yes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|