getTimeinChar is now used instead of udoing memcpy