sec — current value of seconds.

Description:

u32 sec();

Returns the current value of seconds.

Return values:

Returns the present value of integer seconds passed from the beginning of a minute. Type of return value u32.

Example:

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

V-ID/s:1 
{
	u32 Sec = sec();

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

</item>

The result of performing the example in the interface:

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