Update utils.R

Added:
1. Hold and flush for EACH iteration, with interval = 1ms. 
2. Device options for each OS.