Added a High Resolution Timer base class

This class does however consume a thread from the thread pool while it
is in use, there is no other way as it is ment to be as close to real
time as posible without hijacking one of the cpu cores.