From e0f85dafef0429cb05eb78deb62da6270268cea1 Mon Sep 17 00:00:00 2001 From: arpan-dasgupta Date: Thu, 21 Mar 2019 15:52:27 +0530 Subject: [PATCH] Added live Timer --- src/lab/quiz.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lab/quiz.php b/src/lab/quiz.php index f9abd26d..4f3f7dc7 100644 --- a/src/lab/quiz.php +++ b/src/lab/quiz.php @@ -156,12 +156,17 @@ echo ' - +

Result:

'.$c_answers.' of '.$no_ques.'

'.(int)($c_answers*100/$no_ques).'%

You must study -harder!

Time Spent

'; -printf("%02d:%02d",(int)($curr_time/60),($curr_time%60)); -echo '

- +harder!

Time Spent