clock: add modelclock_t typedef, use 'unsigned int'