Timer

Get_Date, Get_Time, Timer

Get_Date

Description 

DWORD Get_Date();

This function returns the current date.

Return Values

DWORD

This function returns a year, a month and a day packed in the double word value.

DWORD dw;
WORD year, month, day;
dw = Get_Date();
year = HIWORD(dw);
month = HIBYTE(LOWORD(dw));
day = LOBYTE(LOWORD(dw));

Note

See the example for an explanation how to get the date.

See Also 
Get_Time

Get_Time

Description 

DWORD Get_Time();

Return Values

DWORD

The time elapsed from the beginning of the application session in ms.

Note

The accuracy of this time measurement is 1 ms. This function is typically used to measure the duration of some events/actions.

See Also 
Get_Date

Timer

Description 

 Timer(
   int  TimerID,
   int  TimerMsec,
    TimerBuf
);

Creates/deletes the timer.

Parameters

int TimerID

timer id = 1, 2, 3, ...

int TimerMsec

time-out value, -1 kills the timer

TimerBuf

name of callback function