use usleep function in libc library
remove ~str