99x / 99x/timercpp

question atomic

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
266
Forks
74
PR merge metrics
No merged PRs in 30d

Description

https://github.com/99x/timercpp/blob/fbf911046b46f4fa68e3a94d004acb3d9de41f10/timercpp.h#L7

Hey,
why is this initialized to true this does not make any sense to me. Like this there is no way to check if its already running.
I use it in a loop and need to check if the timer is already running.

And why is there no function to check if its already running? I use function like this.
`bool Timer::state()
{
return active;
}`

Contributor guide

No contributing guide indexed for this repository

Research direction

Review timercpp.h at line 7 and the existing Timer API, including the proposed Timer::state() shape, to determine the intended running-state behavior. Confirm the initialization and state-checking interface with a focused usage test covering a timer used in a loop; done means callers can reliably tell whether the timer is running.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.