One again, maths is wrecking my head. I'm not lazy or stupid, I just have never been able to do it. I'm trying to calculate how much time a loop would need to Sleep() in order to capture a pre determined amount of images from screen per second. So if I want 20fps, how much time should I sleep between captures? here some code which might better explain. #include <Screencapture.au3> #include <File.au3> ;Create a temp folder in script dir if it does not exist Const $CaptureFol