msWithinMin() — number of milliseconds from the beginning of a minute.

Description:

u32 msWithinMin();

Returns number of milliseconds from the beginning of a minute.

Return values:

Returns the present number of milliseconds from the beginning of a minute. Type of return value u32.

Example:

<item addr="524:248" INTERFACEID="2023" name="Test for msWithinMin function " type="script">

V-ID/s:1 
{
	u32 msec = msWithinMin();

	// Result output to the interface
	u8 strForMess[100];
	sprintf(strForMess, "%cMilliseconds from the beginning of a minute: %d", 1, msec);
	setStatus(INTERFACEID:32, &strForMess);
}

</item>

The result of performing the example in the interface:

Every second the messages with current value of milliseconds passed from the beginning of a minute appear in the interface.