clean up FPS logging code
rename time to cur_time for consistency with Linux code
add multi-threading implementation for Win32 platform