add debug flag to print clock speed