Modified the delay funtions for ZED to avoid problems when running in release.