From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

millisecond timer value

What is value that millisecond timer returns? What is the basis for that? Does it depends system clock?
0 Kudos
Message 1 of 4
(10,864 Views)

It just counts ms.

I don't understand what your question is. What are you trying to do ?

Of course it depends from the system clock. Windows have resolution of 1 ms, that is why it has the same resolution

Message 2 of 4
(10,859 Views)

The millisecond timer (tick count) returns a number that has no relation to the actual absolute time of your PC. It can be used to time events, to (approximately) millisecond precision.

 

If you call the function once, it will return a number like 24516526

if you call it again 300 milliseconds later it will return 24516823  (or there abouts, it could differ by a few milliseconds as Windows is not a deterministic real-time OS).

 

0 Kudos
Message 3 of 4
(10,830 Views)

I think the counter is reset as Windows boots up.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(10,807 Views)