add a function to get the sys clock frequency