windows has localtime
use QueryPerformanceCounter to get accuracy unser windows xp