Name: Kaleidoscope-CycleTimeReport
Owner: Keyboardio
Description: Main loop length reporter plugin for Kaleidoscope.
Created: 2017-08-18 07:22:02.0
Updated: 2018-05-15 05:07:57.0
Pushed: 2018-05-15 05:07:59.0
Homepage: null
Size: 7
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A development and debugging aid, this plugin will measure average mainloop times
(in microseconds) and print it to Serial
periodically. While not the most
reliable way to measure the speed of processing, it gives a reasonable
indication nevertheless.
The plugin comes with reasonable defaults (see below), and can be used out of the box, without any further configuration:
lude <Kaleidoscope.h>
lude <Kaleidoscope-CycleTimeReport.h>
IDOSCOPE_INIT_PLUGINS(CycleTimeReport);
setup (void) {
rial.begin(9600);
leidoscope.setup ();
The plugin provides a single object, CycleTimeReport
, with the following
property. All times are in milliseconds.
.average_loop_time
A read-only by contract value, the average time of main loop lengths between two reports.
cycleTimeReport()
Reports the average loop time. By default, it does so over
Serial
, every time when the report period is up.It can be overridden, to change how the report looks, or to make the report toggleable, among other things.
It takes no arguments, and returns nothing, but has access to
CycleTimeReport.average_loop_time
above.
Starting from the example is the recommended way of getting started with the plugin.