WIP Common timer functionality

Do not pull yet, wnidows version not here.
I am going to squash the commits later on, just comment on them for now.