fix timer -- algorithm finished.

#2