Using windows performance counter for time module