msecscount fix for windows