def set_clock_type(type):
type = type.upper()<EOL>if type not in CLOCK_TYPES:<EOL><INDENT>raise YappiError("<STR_LIT>" % (type))<EOL><DEDENT>_yappi.set_clock_type(CLOCK_TYPES[type])<EOL>
Sets the internal clock type for timing. Profiler shall not have any previous stats.
Otherwise an exception is thrown.