High Precision Timing on Windows in C

Channel:
Subscribers:
6,130
Published on ● Video Link: https://www.youtube.com/watch?v=LFkLLSOXQIc



Duration: 5:25
2,525 views
91


Get the code in the text version of this tutorial: http://croakingkero.com/tutorials/win32_timing/

Chapters:
00:00 Introduction
00:13 CPU basis for timing
00:26 The two main functions
00:43 Basic timing program
01:07 Zen Timer
01:25 Using Zen Timer
01:46 Rate limiting theory
01:57 Rate limiting program
02:28 Solving small overshoots
02:46 Solving long overshoots
03:31 Sleep()
03:43 TimeBeginPeriod()
03:56 Using Sleep() to reduce CPU usage
04:25 Increasing Sleep() accuracy
04:51 Sleep(0) optimization
05:08 Coming soon