# Getting time print outs on data file to characterize delays

**URL:** https://discourse.psychopy.org/t/getting-time-print-outs-on-data-file-to-characterize-delays/5543
**Category:** Builder
**Tags:** timing
**Created:** [October 14, 2018, 5:21pm UTC](https://discourse.psychopy.org/t/getting-time-print-outs-on-data-file-to-characterize-delays/5543 "2018-10-14T17:21:01Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![novasdid](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@novasdid](https://discourse.psychopy.org/u/novasdid)
#### Post date: [October 15, 2018, 3:37pm UTC](https://discourse.psychopy.org/t/getting-time-print-outs-on-data-file-to-characterize-delays/5543/4 "2018-10-15T15:37:17Z")

</div>

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](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/c/c2c6af9c7578dd9848b8e3922f18388d9387b2af.py) (17.8 KB)

Any idea how to fix this? Code attatched.

---

_[View the full topic](https://discourse.psychopy.org/t/getting-time-print-outs-on-data-file-to-characterize-delays/5543)._
