Time

Time

Methods


delaymicroseconds(value_microseconds)


Delays the program for the given number of microseconds.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
value_microseconds
Code Equivalent:
delayMicroseconds(  value_microseconds  );

delayms(value_milliseconds)


Delays the program for the given number of milliseconds.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
value_milliseconds

the number of milliseconds

Code Equivalent:
delay(  value_milliseconds  );

delayseconds(value_seconds)


Delays the program for the given number of seconds.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
value_seconds

the number of seconds

Code Equivalent:
delay(value_seconds * 1000);

microseconds()


Returns the number of microseconds that have passed since the program started running.

Check out the third party documentation for a more in depth explanation.

Code Equivalent:
micros()

milliseconds()


Returns the number of milliseconds that have passed since the program started running.

Check out the third party documentation for a more in depth explanation.

Code Equivalent:
millis()

seconds()


Returns the number of seconds that have passed since the program started running.

Check out the third party documentation for a more in depth explanation.

Code Equivalent:
(millis() / 1000)