Skip to content

feat: Add custom time units (us, ms, s, min, h) with type safety and casting#25

Open
marciomoura wants to merge 1 commit into
mainfrom
feature/custom-time-units
Open

feat: Add custom time units (us, ms, s, min, h) with type safety and casting#25
marciomoura wants to merge 1 commit into
mainfrom
feature/custom-time-units

Conversation

@marciomoura
Copy link
Copy Markdown
Owner

This PR adds custom time units (microseconds, milliseconds, seconds, minutes, hours) and their per-unit/percent base systems, a time_cast utility and convenience helper functions. In addition, it deletes binary operators for mismatched systems/dimensions to strictly enforce compile-time unit type safety (e.g. preventing seconds_t + minutes_t).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant