implement a high-precision timer

untested on OSX so far

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
use the precise counter

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
remove unused header

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>