InfiniSim icon indicating copy to clipboard operation
InfiniSim copied to clipboard

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

Open kestara opened this issue 3 years ago • 6 comments

(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.

kestara avatar Mar 01 '23 17:03 kestara

I very much like the idea, but sadly I don't know how to pull it off.

NeroBurner avatar Mar 16 '23 14:03 NeroBurner

Here's a proof of concept. Works on GNU/Linux with gcc at least, other platforms to be tested.

stdchrono_abort.diff.txt

lmamane avatar Oct 27 '24 05:10 lmamane

That looks interesting to say the least! Could you open a PR with those changes for easier workflow on my side and attribution for your work? 🙇‍♂️

NeroBurner avatar Oct 27 '24 21:10 NeroBurner

Yes, sure. I'll polish it it up and make a PR out of it. I'm prioritising finishing the app I'm developing first, then hopefully I'll get back to that. It is going nicely :)

Nice to see you are interested and responsive.

lmamane avatar Oct 31 '24 20:10 lmamane

Assuming my pull request #2162 in InfiniTime is merged, this will become moot and can be closed.

lmamane avatar Nov 09 '24 19:11 lmamane

Direct link to mentioned PR: https://github.com/InfiniTimeOrg/InfiniTime/pull/2162

NeroBurner avatar Jun 10 '25 11:06 NeroBurner