fix compile error about clock