how to set time for 30 min or 60 min

Hello Friends, iam working on online exam.my problem is how to set time for 30min or 60 minutesadmin will set time as he like(30min or 60 minutes etc)during exam time should display as desired by admin.Time should reduce like (30min,29min etc).Till time is completedany budy help me