This line fails to compile on visual studio because steady_clock::now() calls system_clock::now() which for some reason can't be compared even though steady_clock is a subclass of system_clock.