cleanup nu.x, reorganize c++ timers into inline functions