Adding a timer

I'm using QueryPerformanceCounter to track the master time. Not sure the
final form this will take, but it's good for now.