Copied from clock_c until 2/5/14.