fix some bugs in "printcycletime" command