Getting time print outs on data file to characterize delays

I just tried adding <thisExp.addData(‘AbsTime’,globalClock.getAbsTime())> in the same spot as the other data printout modifications (end routine section of the TestWord component)
to get the absolute time that the Test Text is appearing. I thought I could try to do something similar on the computer triggering the TMS coil to fire and then simple math would get me a delay! However, I receive the following error:

“AttributeError: ‘Clock’ object has no attribute ‘getAbsTime’”

PilotTriggerTimeDataPrint.py (17.8 KB)

Any idea how to fix this? Code attatched.