sys: timex cleanup

This PR comprises some improvements for the timex module:
 * better and more documentation
 * some inline functions
 * a more flexible string conversion
The link is broken, but I assume it is for calculate. However, the quotation does not help.
Or would you say that "I think the thinking of facts a and b." is a sensible sentence?