summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2026-02-01 15:18:06 +0100
committerGitHub <noreply@github.com>2026-02-01 14:18:06 +0000
commit47f90356013f2170e2fb991ac370766f71965271 (patch)
tree3f70dea1e97b2ea15a37f3cb10f88946312ff1b1 /src/render/OpenGL.cpp
parentdb6114c6c53edc4a60695a12d7f857308b6cd6cd (diff)
time: ensure type correctness and calculate nsec correctly (#13167)
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.
Diffstat (limited to 'src/render/OpenGL.cpp')
0 files changed, 0 insertions, 0 deletions