LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer() function returns seconds and milliseconds on different systems

Function Timer() returns number of milliseconds instead of seconds on one of the system I have tried it on.

My program works as expected in Win2000 SP2 and WinXP, both laptops and desktops. The system where it didn't work was an Acer TravelMate 342T running Win2000 SP1.

The Windows SDK functions GetTickCount() and timeGetTime() works as they should on all the systems, including the Acer machine, as is CVI function GetSystemTime().

The program was installed using a CVI Distribution Kit built by LabWindows/CVI.

My solution for the moment is to use GetTickCount() instead.
0 Kudos
Message 1 of 2
(3,341 Views)
The ANSI C clock() function can also be used under DOS and Win32 for timing
purposes.

"Mattias Axelsson" wrote in message
news:506500000008000000F5810000-1042324653000@exchange.ni.com...
> Function Timer() returns number of milliseconds instead of seconds on
> one of the system I have tried it on.
>
> My program works as expected in Win2000 SP2 and WinXP, both laptops
> and desktops. The system where it didn't work was an Acer TravelMate
> 342T running Win2000 SP1.
>
> The Windows SDK functions GetTickCount() and timeGetTime() works as
> they should on all the systems, including the Acer machine, as is CVI
> function GetSystemTime().
>
> The program was installed using a CVI Distribution Kit built by
> LabWindows/CVI.
>
> My solution for the moment is to us
e GetTickCount() instead.
0 Kudos
Message 2 of 2
(3,341 Views)