What am I doing wrong? (I did say it was a general question...)
I must not be setting up the variables correctly.
I'm just trying to get the milliseconds that the report took to create. $start is from the incoming context object.
thanks,
--Joe.
#set ( $finishT = $number.integer($now.time) )
#set ( $startT = $number.integer($start) )
#set ( $totalTime = $number.integer($finishT) - $number.integer($startT) )
#set ( $totalCalc = $number.integer($totalTime) )
#set ( $timer = \$startT )
finisht $finishT <br></br>
startt $startT <br></br>
totaltime $totalTime <br></br>
totalcalc $totalCalc <br></br>
timer $timer <br></br>
raw $number.integer($finishT) - $number.integer($startT) <br></br>
Returns:
finisht 1,528,491,218,781
startt 1,528,491,216,724
totaltime $totalTime
totalcalc $totalCalc
timer 1,528,491,216,724
raw 1,528,491,218,781 - 1,528,491,216,724