sys: timex cleanup

This PR comprises some improvements for the timex module:
 * better and more documentation
 * some inline functions
 * a more flexible string conversion
"Subtracts the second parameter from the first parameter"?

I always found the word "difference" odd. It sound like the value of `|a-b|` to me.