Windows: time() not reliable