Add clock tick thread to main activity.