High Precision Timing on Windows in C
Channel:
Subscribers:
6,130
Published on ● Video Link: https://www.youtube.com/watch?v=LFkLLSOXQIc
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
Other Videos By Nick Walton
2023-08-16 | C Programming on Manjaro Linux Quick Setup Guide |
2023-07-02 | Draw Text in C with Bitmap Fonts |
2023-01-10 | Pixel Perfect Collision Detection in C |
2022-11-05 | Easy C Debugging with VSCode & GDB |
2022-10-01 | Namespaces in C (Renamable libraries) |
2022-07-09 | Multi-Threaded Game Framework in C |
2022-05-07 | High Precision Timing on Windows in C |
2022-04-02 | Load .WAV Sound Files in C |
2022-03-26 | Load .BMP Images in C |
2022-02-27 | Realtime Sound on Windows in C with WinMM |
2022-02-18 | Win32 Input in C (Keyboard/Mouse) |
2022-02-11 | GCC/MinGW on Windows Quick Setup Guide |
2022-02-01 | Draw Pixels to a Win32 Window in C with GDI |
2022-01-21 | Open a Window in C with Win32 |
2021-12-26 | C Programming on Windows Quick Setup Guide |
2020-03-12 | Switching to C - One Year Later |
2019-11-24 | I was sent Ben Eater's 6502 computer kit! |
2019-10-03 | Super Kero Land Early Access Trailer! |
2019-07-10 | The big Notemon delay |
2019-04-24 | Maze95 Launch Trailer |
2019-04-13 | Welcome to Nyoo Owtearowa - Notemon Trailer |