add real time timing and remove sleep
log