PennController for IBEX › Forums › Support › Not logging timestamps › Reply To: Not logging timestamps
March 2, 2023 at 9:29 am
#9979
Jeremy
Keymaster
Hello,
This is not possible. You can, however, log time differences as additional columns by using global Var elements, eg:
newTrial( newButton("Click me").print().wait() , newVar("clickDelay",0).global().set(v=>Date.now()) , getButton("Click me").wait() , getVar("clickDelay").set(v=>Date.now()-v) ) .log("Delay", getVar("clickDelay")
This will add a column reporting how much time separates the two clicks on the Button element. Note, though, that because commands take time to be executed, it is always optimal to use the EventTime column during the analyses to get as close to actual time differences as possible
Jeremy