Jump to content

Component: Stopwatch (Timing ): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 28: Line 28:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetElapsedTimeAsReal'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetElapsedTimeAsReal'''
|-
|-
Line 42: Line 42:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetElapsedTimeAsUnit'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetElapsedTimeAsUnit'''
|-
|-
Line 61: Line 61:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Start'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Start'''
|-
|-
Line 80: Line 80:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop'''
|-
|-

Revision as of 14:17, 13 July 2026

Author Matrix TSL
Version 1.0
Category Timing


Stopwatch component

Stopwatch component used to measure the passage of time. Capable of measuring milliseconds, seconds, minutes, hours and time in seconds as a float.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

GetElapsedTimeAsReal

GetElapsedTimeAsReal
Returns the current stop watch time as a floating point number in seconds. 
- FLOAT Return


GetElapsedTimeAsUnit

GetElapsedTimeAsUnit
Gets the stop watch time in the unit specified. 
- BYTE Unit
0=milliseconds, 1=seconds, 2=minutes, 3=hours 
- ULONG Return


Start

Start
Starts the stop watch running. 
- BOOL ResetCounter
0=Start counting without resetting, 1=Reset Counter 
- VOID Return


Stop

Stop
Stops the stop watch 
- VOID Return


Property reference

Properties

Component Source Code

Please click here to download the component source project: FC_Comp_Source_StopWatch.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_StopWatch.fcsx