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 result of performing a subtraction (i.e. "the calculation")  is called "difference".