use C delay method