I'm using getTime in a new script and was curious how precise the values it returns are.
When I use the following:
Code:
def timestamp = getTime()
def option = getBoolean("Pick an option, but be quick!","Option 1","Option 2")
def reaction = getTime() - timestamp
...
show("You chose "+option+" and responded in "+reaction+" seconds.")
... I notice that it seems to round to the nearest second. Example:
Code:
"You chose Option 2 and responded in 2 seconds."
Is there a way to use getTime (or an alternative) to get a more precise result like:
Code:
"You chose Option 2 and responded in 1.43 seconds."
Am I missing something easy or does getTime only round to the nearest second?