WIP Common timer functionality

Do not pull yet, wnidows version not here.