sys: timex cleanup

This PR comprises some improvements for the timex module:
 * better and more documentation
 * some inline functions
 * a more flexible string conversion
If half of us wants more documentation, and the other half want less, and this third half want a better or at least an entirely different documentation, then we got three halves and will never come to an end.