Remove sys timer and optimize code by clang