You're reading the documentation for a development version. For the latest released version, please have a look at master.

Timer Node

Overview

The Timer node calculates the runtime from the first start timer to the second timer.

../../_images/timer_overview_1.png ../../_images/timer_overview_2.png

Output

Output

Type

Description

currentTime

double

Time value for when the node was last run.

recordedTime

double

Recorded elapsed time.

RecordedTime = current time - current time at the last time it ran


Node Settings

../../_images/timer_node_settings_1.png ../../_images/timer_node_settings_2.png
  • Timer Type (Default: Start Mode):

    Select from Start Mode or Lap Mode.

  • Link Start Timer:

    The other Timer node used in calculating the time.


Procedure to Use

  1. Insert two Timer nodes, and some other nodes between the two Timer nodes.

../../_images/timer_procedure_1.png
  1. Click the first Timer node. Set the Timer Type to Start Mode.

../../_images/timer_procedure_2.png
  1. Click the second Timer node. Set the Timer Type to Lap Mode. Click the blue dot and link the first Timer node’s currentTime output.

../../_images/timer_procedure_3_1.png ../../_images/timer_procedure_3_2.png
  1. Run the flowchart. You can see the Time Elapsed is printed in the console.

../../_images/timer_procedure_4.png