(Design) Changed measuring method to wait4, added time measurements