use microtime for wait calc
log method and script at beginning