[低] 播放计时使用 time.time() 而非 monotonic

Open Beginner friendly
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
desktop-dev

Research direction

Open windows/birdlock/app/state.py around lines 1206-1224 and read the playback timer loop: note every time.time() call and where those values are stored or compared. Replace them with time.monotonic() consistently, since monotonic values cannot be mixed with wall-clock timestamps. No test is named, so done means the timer math no longer depends on the system clock; the issue notes it was not reproduced on Windows hardware, so keep the change minimal and easy to review.

Written by the indexing model from the issue text.

Description

位置:windows/birdlock/app/state.py:1206-1224

现象:系统时钟被 NTP 或用户调整时,播放可能跳帧或停顿。

建议:改用 time.monotonic()。

来源:2026-11-15 全仓只读审计,PR #7 未包含此项。 未在 Windows 实机复现,复现路径由代码审计推得。

Dominant language
Swift
Stars
2
Forks
2
Avg merge
1h 11m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cyandee/BirdLock

All issues in cyandee/BirdLock

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.