Skip to content
Back to skills

Embedded Timing Libs

ASecurity

Use when integrating, porting, configuring, or debugging embedded software timer libraries such as MultiTimer, timeout schedulers, or tick-based callback timers

  • 31 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aidebugging

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add easyzoom/aix-skills --skill embedded-timing-libs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Embedded Timing Libs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Embedded Timing Libs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/easyzoom-embedded-timing-libs/badge)](https://www.skillsdirectory.com/skills/easyzoom-embedded-timing-libs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: embedded-timing-libs
description: Use when integrating, porting, configuring, or debugging embedded software timer libraries such as MultiTimer, timeout schedulers, or tick-based callback timers
---

# Embedded Timing Libs

## Overview

Use this skill for lightweight software timer libraries such as MultiTimer. The agent should confirm tick source, callback context, time units, wraparound behavior, and scheduler frequency before relying on timer callbacks.

## When To Use

Use this skill when:

- The user wants to add or debug MultiTimer, software timers, timeout lists, periodic callbacks, or one-shot timers.
- Timers drift, fire too early/late, stop firing, fire repeatedly, or break across tick overflow.

Do not use this skill for hardware PWM/timer peripheral bring-up. Use `embedded-peripheral-bringup` for register-level timer issues.

## First Questions

Ask for:

- Timer library and target runtime.
- Tick source and frequency.
- Callback context: main loop, RTOS task, ISR, or scheduler hook.
- Time units used by the library and application.
- Number of timers and longest expected uptime.
- Whether callbacks may start/stop other timers.

## Integration Checklist

1. Confirm tick monotonicity.
   Timer logic needs a stable increasing timebase or explicit wraparound handling.

1. Match units.
   Milliseconds, ticks, microseconds, and RTOS ticks must not be mixed silently.

1. Define callback context.
   Timer callbacks must not block if they run in ISR or scheduler critical context.

1. Test one-shot and periodic behavior.
   Verify start, stop, restart, and callback ordering.

1. Test wraparound.
   Use simulated ticks or shortened counters to prove overflow behavior.

## Common Failures

- Tick function returns seconds while timer expects milliseconds.
- Callback blocks in interrupt context.
- Timer list is modified while iterating without protection.
- Drift accumulates because periodic timers restart from callback time instead of scheduled time.
- Wraparound breaks after long uptime.

## Verification

Before claiming timer integration works:

- State tick source, frequency, unit, callback context, and protection strategy.
- Confirm one-shot, periodic, cancel, restart, and wraparound behavior.
- Confirm callback execution time is acceptable.
- Confirm timer operations are safe from ISR/task contexts in use.

## Example

User:

```text
MultiTimer 定时回调偶尔不准。
```

Agent:

1. Asks for tick source, units, callback context, and scheduling frequency.
1. Checks unit conversion and whether callbacks block.
1. Tests periodic drift and tick wraparound with a small counter.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.