Replaced system_clock usage with high_resolution_clock