Use uint64_t for workDone. Add actual deley which couldn't
    optimized by compiler opts.