Skip to content

Conversation

@Rtur2003
Copy link
Contributor

@Rtur2003 Rtur2003 commented Dec 7, 2025

Summary

  • normalize timespec nsec overflow/borrow before conversions and expose helper for tests
  • fix system_clock sec/nsec reconstruction drift
  • add regression tests for Time::toTimespec/fromTimespec and diff/normalize edge cases

Testing

  • tests: ctest (gtest helpers/Time*, helpers/TimeDiff*)

@@ -1,24 +1,49 @@
#!/bin/sh

# dash-compatible and space-safe shader include generator. @Rtur2003
Copy link
Member

Choose a reason for hiding this comment

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

what are these changes


namespace Time::detail {

sec_nsec diff(const sec_nsec& newer, const sec_nsec& older) {
Copy link
Member

Choose a reason for hiding this comment

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

Time::detail::diff instead of namespace {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants