473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VB6 GetTickCount() in C#!

Hi there.

I think in vb6, i can use GetTickCount easily by accessing
the user32.dll (hmm.. can't remember what is the dll name,
but something like that)

Is there any code in the System.namespaces which i can get
the exactly same values for GetTickCount() in c#?

I heard timer return seconds rather than miliseconds...

Any help?

Thanks.

Regards,
Chua Wen Ching
Nov 15 '05 #1
2 4707
System.TickCount

Returns the number of milliseconds since the system started.

Brian Patterson

"Chua Wen Ching" <cw*@cwc.com> wrote in message
news:02****************************@phx.gbl...
Hi there.

I think in vb6, i can use GetTickCount easily by accessing
the user32.dll (hmm.. can't remember what is the dll name,
but something like that)

Is there any code in the System.namespaces which i can get
the exactly same values for GetTickCount() in c#?

I heard timer return seconds rather than miliseconds...

Any help?

Thanks.

Regards,
Chua Wen Ching

Nov 15 '05 #2
Thank bryan.

Regards,
Chua Wen Ching :p
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: SABmore | last post by:
Is there a performance advantage to parsing thru a recordset verus using an array? I'm currently trying to populate a listbox by returning data from my database, then either parsing thru the...
1
by: Dark74 | last post by:
Vladimir Nesterovsky wrote: > If you realy need to measure short time use rathe > QueryPerformanceCounter > and QueryPerformanceFrequency instead of GetTickCount. > -- > Vladimir Nesterovsky >...
2
by: farsad nasseri | last post by:
Hi We're having some timing issues with one of our longer running software programs. I am trying to measure how many times my computer can loop through before one millisecond has passed by and...
23
by: EOS | last post by:
Hi, As the title indicated, does anyone know the equivalent of GetTickCount() function in C/C++ for C#? The function is supposed to return time elapsed since the computer/device is booted in...
43
by: ZillionDollarSadist | last post by:
Hello, I'm working at a simple Access '97 + VB4 application, and I ran into a terrible problem: something I never modified now gives me a totally unwanted "Invalid use of null" error. It happens...
6
by: MLH | last post by:
If you're only furnished the table name of a table in your database, what can I do in VBA to count tablle records in a given table? Seeking simplest method. In other words, I don't have the...
2
by: Don Miller | last post by:
Can I call GetTickCount straight from ASP? If so how do I do it? Thanks. Don
1
by: Inebas | last post by:
Hi Guys, I got an assignment to calculate the execute time difference a code written with threads and one without. I got the algorithm working but GetTickCount() return the same number before and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.