Switched to chrono for timing. Resizing windows works correctly.