Add getTime for win32 and unix platforms

getTime takes an argument, TimeType, which is either TIME_MONOTONIC
for a monotonic time source, or TIME_REAL for wall-clock time. Either way,
return value is milliseconds.
struct ControlEvent now keeps time of event (monotonic source)