Skip to content

incendium.util.get_timer

César Román edited this page Feb 11, 2022 · 10 revisions

Description

Get a timer with the time elapsed from value until now.

This will be in the following format: hh:mm:ss.

Syntax

get_timer(date)

Args:

  • date (Date|long): A Date or a date represented in milliseconds.

Returns:

  • str: Time elapsed.

Recommendations

This can be called from a runScript Expression Function to display the elapsed time.

Code Examples

# Expression
runScript("incendium.util.get_timer", 1000, {Starting Date})
Clone this wiki locally