Batched writes to the log

The default scheduling quantum on Windows is 10 ms. If any thread anywhere on the system sleeps for less than this, then the scheduling quantum is temporarily reduced to some value that will allow the process to wake up at very close to the desired time. So this will affect everything that runs on the same Windows system.