I think that the timer works. Calculates in microseconds currently
tested with nanosleep, it sleeps to work