Fix for deprecated getMicroTime()