Expose time diff functions
Implement log print functions
Eluna fix TC errors from previous commits, fix merge and fix a crash on osx