Fix ModeT, add TimeT and update the Time class

I got ModeT wrong in a previous commit. ModeT seems to be the same type across different architectures of the same platform. TimeT is needed for a pull request that I will submit soon.

Furthermore, this commit includes an update to the Time class.