InfiniTimeOrg / InfiniTimeOrg/InfiniSim

Add warning that std::chrono::system_clock is not supported on hardware even though it may work fine in the sim

Open
#92 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
C++
Stars
203
Forks
97
PR merge metrics
No merged PRs in 30d

Description

(This confusion has happened at least two times link 1 link 2)

Idea: If use of std::chrono::system_clock is detected (unsure how) then add a warning in the console that on the watch this will result in undefined behaviour.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating where InfiniSim handles console warnings and where std::chrono::system_clock is used or exposed. Determine how its use can be detected, then add a warning explaining that it is unsupported on the watch and may only appear to work in the simulator; confirm the warning is emitted in the relevant case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.