sys: timex cleanup

This PR comprises some improvements for the timex module:
 * better and more documentation
 * some inline functions
 * a more flexible string conversion
Yes, that is why the sentence appears broken to me - "calculation" refers to the result in my understanding of the word. My dictionary agrees with me on this.