Closed FrenkelS closed 4 months ago
On the IBM PC we use clock() to calculate the frames per second. On the Macintosh Plus clock() returns -1, so we use time(NULL) instead, but that's not as accurate as clock().
clock()
time(NULL)
time(NULL) was replaced by TickCount() in this commit https://github.com/FrenkelS/doomtd3/commit/6f2ac98fc605efe38c1c39c2cc0d259d9c38778f There are 60 ticks in one second.
TickCount()
On the IBM PC we use
clock()
to calculate the frames per second. On the Macintosh Plusclock()
returns -1, so we usetime(NULL)
instead, but that's not as accurate asclock()
.