summaryrefslogtreecommitdiff
path: root/src/helpers/time
Commit message (Collapse)AuthorAgeFilesLines
* protocols: commit and presentation timing fixes (#13174)UjinT342026-02-102-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * move commit timing fields to surface state * fix toTimespec init * update sendQueued api * update onPresented api * set zero copy flag * send clock id * move presented calcs inside condition * use only CLOCK_MONOTONIC for commit/presentation timings * fix setSetTimestamp * do not wait for commit timing while tearing * proto config * fix config defaults
* time: ensure type correctness and calculate nsec correctly (#13167)Tom Englund2026-02-011-14/+13
| | | | | | | | | | | use auto for nsecdur, assigning system_tp into steady_tp compiles but is not correct. just change it to auto. use {} initialization for timespec structs and returning std::pair. in timediff, fromTimespec and toTimespec the else case was calculating wrong. we need to correctly handle the borrow when the nanoseconds of the first time are smaller than the second, by adding TIMESPEC_NSEC_PER_SEC and decrementing the seconds.
* timer: constify methods (#12079)Mozzarella322025-10-182-8/+8
|
* time: move to stl's clocks and move timerVaxry2025-04-164-0/+203