Component: Stopwatch (Timing ): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray..." |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
===GetElapsedTimeAsReal=== | ===GetElapsedTimeAsReal=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetElapsedTimeAsReal''' | ||
|- | |- | ||
| colspan="2" | Returns the current stop watch time as a floating point number in seconds. | | colspan="2" | Returns the current stop watch time as a floating point number in seconds. | ||
| Line 40: | Line 40: | ||
===GetElapsedTimeAsUnit=== | ===GetElapsedTimeAsUnit=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetElapsedTimeAsUnit''' | ||
|- | |- | ||
| colspan="2" | Gets the stop watch time in the unit specified. | | colspan="2" | Gets the stop watch time in the unit specified. | ||
| Line 59: | Line 59: | ||
===Start=== | ===Start=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start''' | ||
|- | |- | ||
| colspan="2" | Starts the stop watch running. | | colspan="2" | Starts the stop watch running. | ||
| Line 78: | Line 78: | ||
===Stop=== | ===Stop=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stop''' | ||
|- | |- | ||
| colspan="2" | Stops the stop watch | | colspan="2" | Stops the stop watch | ||
| Line 93: | Line 93: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 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. | |
| Return | |
GetElapsedTimeAsUnit
| GetElapsedTimeAsUnit | |
| Gets the stop watch time in the unit specified. | |
| Unit | |
| 0=milliseconds, 1=seconds, 2=minutes, 3=hours | |
| Return | |
Start
| Start | |
| Starts the stop watch running. | |
| ResetCounter | |
| 0=Start counting without resetting, 1=Reset Counter | |
| Return | |
Stop
| Stop | |
| Stops the stop watch | |
| 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