]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - docs/faq_keymap.md
Add tap_random_base64 and software timer info to Useful Functions doc (#4360)
[qmk_firmware.git] / docs / faq_keymap.md
index 4e842d363ceec3f23db6289853ebf0fb5f369e2e..ae01e938780a83af5c869fb205c7463c8a918dd8 100644 (file)
@@ -211,20 +211,3 @@ here real_mods lost state for 'physical left shift'.
 
 weak_mods is ORed with real_mods when keyboard report is sent.
 https://github.com/tmk/tmk_core/blob/master/common/action_util.c#L57
-
-## Timer Functionality
-
-It's possible to start timers and read values for time-specific events - here's an example:
-
-```c
-static uint16_t key_timer;
-key_timer = timer_read();
-
-if (timer_elapsed(key_timer) < 100) {
-  // do something if less than 100ms have passed
-} else {
-  // do something if 100ms or more have passed
-}
-```
-
-It's best to declare the `static uint16_t key_timer;` at the top of the file, outside of any code blocks you're using it in.