C version of TypeTime