patch from tito: consolidate delay functions as bb_do_delay()
7 files changed