There is also the TimeGetTime() API function which is very accurate