i made a simple trivia but i want it to be abit better
when someone gets a correct answer i set a var with
$ctime value and calculate how fast the users response was
with $duration($calc($ctime - %T.T)
%T.T = the time thw question started
and could u please help me with this and if u can make other things better that would be great thanks alot

heres the code:
on *:TEXT:!Trivia:#: {
msg # Starting Trivia...
start.trivia
}
alias start.trivia {
var %chan = $1
tokenize 42 $read(Q.txt)
var %Q = $1
set %A $2
;Q = question A = Answer
msg %chan question: $1 $+ ?
set %T.T $ctime
.timerTRIVIA.timeout 1 60 chk.timeout %chan
}
alias chk.timeout {
msg $1 Trivia Time Up
msg $1 Answer %A
msg $1 Next Question
start.trivia $1
}
on *:TEXT:*:#: {
if ($timer(TRIVIA.timeout)) {
if ($1 == %A) {
timerTRIV* off
msg # $nick Got Answer %A in $duration($calc($ctime - %T.T))
msg # Next Question...
start.trivia #
}
}
}
i really need the time better cuz at the moment if you answer real fast you can get 0secs
and on other trivias its like 0.12 secs
so i want the really accurate times
thanks alot