Move timeR internals out of dotcode.c