National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 8 Utility Library
© National Instruments Corporation 8-83 LabWindows/CVI Standard Libraries
Timer
double
t = Timer
(void);
Purpose
Returns the number of seconds that have elapsed since the first call to Timer, Delay, or
SyncWait or the first operation on a timer control. The value is never reset to zero except
when you restart your program. The resolution on Windows is normally 1 millisecond.
However, if the following line appears in the CVI section of your WIN.INI file, the
resolution is 55 milliseconds.
useDefaultTimer = True
The resolution on Sun Solaris is 1 millisecond.
Parameters
None
Return Value
t
double-precision Number of seconds since first
call to Timer.
TimeStr
char
*
s = TimeStr
(void);
Purpose
Returns an 8-character string in the form HH:MM:SS, where HH is the hour, MM is in minutes,
and SS is in seconds.
Parameters
None
Return Value
s
8-character string The time in HH:MM:SS format.