To get current time: GetSystemTime

To count time: get two structures at two different times with the api above and difference-them