Component: Timer Free (Timing): Difference between revisions
Appearance
No edit summary |
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
||
| Line 98: | Line 98: | ||
===GetCountMicroSeconds=== | ===GetCountMicroSeconds=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 112: | Line 112: | ||
===GetCountMilliseconds=== | ===GetCountMilliseconds=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 126: | Line 126: | ||
===GetCountReal=== | ===GetCountReal=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 140: | Line 140: | ||
===GetCountSeconds=== | ===GetCountSeconds=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 154: | Line 154: | ||
===GetCountString=== | ===GetCountString=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 173: | Line 173: | ||
===GetRawCount=== | ===GetRawCount=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 187: | Line 187: | ||
===ResetCounter=== | ===ResetCounter=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 201: | Line 201: | ||
===StartCounter=== | ===StartCounter=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 220: | Line 220: | ||
===StopCounter=== | ===StopCounter=== | ||
{| class="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" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 235: | Line 235: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
Revision as of 14:15, 13 July 2026
| Author | Matrix TSL |
| Version | 1.1 |
| Category | Timing |
Timer Free component
Allows you to measure the passage of time via the use of a hardware timer peripheral. Works like a stopwatch with macros to start, stop and reset the timer counter. Returns time as integer Seconds, Milliseconds, Microseconds and also Floating Point and String.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TimerComponentFree.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TimerComponentFree.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example showing the operation of the timer component used to time a section of code or the duration of a specific event.
Macro reference
GetCountMicroSeconds
| GetCountMicroSeconds | |
| Returns the count value as a number of whole microseconds, rounded down to the nearest microsecond | |
| Return | |
GetCountMilliseconds
| GetCountMilliseconds | |
| Returns the count value as a number of whole milliseconds, rounded down to the nearest millisecond | |
| Return | |
GetCountReal
| GetCountReal | |
| Returns the count value as a floating point value in seconds. | |
| Return | |
GetCountSeconds
| GetCountSeconds | |
| Returns the count value as a number of whole seconds, rounded down to the nearest second | |
| Return | |
GetCountString
| GetCountString | |
| Returns the count value as a floating point string in seconds. | |
| Precision | |
| Number of decimal places to display in string | |
| Return | |
GetRawCount
| GetRawCount | |
| Return | |
ResetCounter
| ResetCounter | |
| Return | |
StartCounter
| StartCounter | |
| Starts the timer counting. | |
| ResetCounters | |
| Range: 0-1 where 0=Do Not Reset and 1=Reset | |
| Return | |
StopCounter
| StopCounter | |
| Stops the timer counting. | |
| Return | |