Update util.cpp

new "sleep" method