Difference between revisions of "Component: STM32 Timer (Storage)"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==STM32 Timer component== | ==STM32 Timer component== | ||
Allows you to measure the passage of time via the use of the STM hardware timer. Works like a stopwatch with macros to start, stop and reset the timer counter. Returns time as integer Seconds, Milliseconds and also Floating Point and String. | Allows you to measure the passage of time via the use of the STM hardware timer. Works like a stopwatch with macros to start, stop and reset the timer counter. Returns time as integer Seconds, Milliseconds and also Floating Point and String. | ||
+ | |||
+ | ==Component Pack== | ||
+ | |||
+ | STORAGE | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 28: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 16:26, 7 January 2022
Author | Matrix TSL |
Version | 1.1 |
Category | Storage |
Contents
STM32 Timer component
Allows you to measure the passage of time via the use of the STM hardware timer. Works like a stopwatch with macros to start, stop and reset the timer counter. Returns time as integer Seconds, Milliseconds and also Floating Point and String.
Component Pack
STORAGE
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
GetCountSeconds |
Returns the count value as a number of whole seconds, rounded down to the nearest second | |
![]() |
Return |
![]() |
StartCounter |
Starts the timer counting. | |
![]() |
ResetCounters |
Range: 0-1 where 0=Do Not Reset and 1=Reset | |
![]() |
Return |
![]() |
GetCountString |
Returns the count value as a floating point string in seconds. | |
![]() |
Precision |
Number of decimal places to display in string | |
![]() |
Return |
![]() |
GetCountMilliseconds |
Returns the count value as a number of milliseconds | |
![]() |
Return |
![]() |
StopCounter |
Stops the timer counting. | |
![]() |
Return |
![]() |
ResetCounter |
![]() |
Return |
![]() |
GetCountReal |
Returns the count value as a floating point value in seconds. | |
![]() |
Return |
![]() |
GetRawCount |
Returns the number of milliseconds elapsed since the timer was started. | |
![]() |
Return |