ported sleeps and added windows highP sleep