Tweeking profiling and time
window class updated to SDL2