Skip to content

Conversation

@codingjourney
Copy link
Contributor

@codingjourney codingjourney commented Oct 20, 2024

This PR solves Issue #303 and is based on previous work by @desttinghim (PR #783 ) and @pptime02 (PR #1410 ). Well, it's actually just a re-base of #1410 onto the current main branch. I did my best not to disrupt functionality implemented on main in the past 2 years. Any feedback is appreciated.

@github-actions
Copy link

github-actions bot commented Oct 20, 2024

Build size and comparison to main:

Section Size Difference
text 380724B 640B
data 944B 0B
bss 22608B 64B

Run in InfiniEmu

Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested on hardware, but this is looking really nice overall. Thanks for pulling together the previous PRs :)

@mark9064
Copy link
Member

@FintasticMan Can you trigger CI?

@codingjourney
Copy link
Contributor Author

Added a fix for a minor issue: after exiting StopWatch in the Paused state and then reopening it, the displayed time would shift by 4, sometimes 5 hundredths of a second. I think this is the delta between the last rendering and the moment we switch state to Paused and set timeElapsedPreviously. (The delta is consistent with the ~24 Hz refresh frequency I've observed.) The fix simply renders time once more once we are Paused.

Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Tested on hardware and works flawlessly

Thanks for sticking through the many rounds of feedback 😅

@codingjourney
Copy link
Contributor Author

By the way, I've noticed this PR breaks InfiniSim. Does that have to be adapted before things get merged in InfiniTime? I don't mind looking into it, it's just that the build setup seems a bit more involved (I went with the Docker method for InfinTime and that's super smooth).

@mark9064
Copy link
Member

Yeah it's good practice to get an InfiniSim PR up and waiting if a PR here will break it (annoyingly the CI has given up again so I can't easily see). I haven't used the docker method so I can't comment on that but provided you're on Linux getting a build environment up and running shouldn't be too bad.

@codingjourney
Copy link
Contributor Author

I've created PR #163 for InfiniSim. Necessary changes were trivial. Functionality in InfiniSim seems to work as intended.

@mark9064
Copy link
Member

mark9064 commented Nov 2, 2024

Great :)

@mark9064 mark9064 added this to the 1.16.0 milestone Nov 17, 2024
@mark9064 mark9064 added enhancement Enhancement to an existing app/feature new feature This thread is about a new feature labels Nov 18, 2024
Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing now, not been running long enough to see hours but looking good so far
I'm not sure how much I like the feel of the time being pushed right to the top? But that's probably just me being used to how it was before, so I'll see after living with it for a bit 👍

@mark9064
Copy link
Member

Looking superb. Just needs a rebase for CI to run (and the last few bits of feedback) and then it's all good from me

@codingjourney
Copy link
Contributor Author

codingjourney commented Dec 14, 2024

I'm not sure how much I like the feel of the time being pushed right to the top? But that's probably just me being used to how it was before, so I'll see after living with it for a bit 👍

Regarding vertical positioning of the time label, my thinking goes like this:

  • the top margin is about half as wide as the side margins - not good
  • on PineTime, the margin blends with the watch bezel so it's OK - good
  • there's too much empty room above the buttons when no laps are listed - not good
  • there's enough room to list 3 laps - good

It would be nice if the time was vertically centered between the top and the buttons and then floated upwards as laps get added to the list, eventually ending up where it is now. I don't find the slight improvement worth the effort, though.

Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will test this latest version on HW soon, good to go IMO

@JF002 JF002 force-pushed the stopwatch-persistence branch from 45a9498 to 931723c Compare November 4, 2025 20:07
@JF002 JF002 merged commit aaf98a2 into InfiniTimeOrg:main Nov 4, 2025
6 of 7 checks passed
NeroBurner pushed a commit to InfiniTimeOrg/InfiniSim that referenced this pull request Nov 4, 2025
This was referenced Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing app/feature new feature This thread is about a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants