added simple java timer