﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » How to record the local time?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 27 May 2026 06:13:38 GMT</lastBuildDate><ttl>20</ttl><item><title>How to record the local time?</title><link>https://forums.millisecond.com/Topic16765.aspx</link><description>Hello.&lt;br/&gt;&lt;br/&gt;Now, I make a Inquisit script.&lt;br/&gt;I want to record the each trial's local time. For example, 10;05;26;48;05 (O'clock, minutes, seconds, milliseconds).&lt;br/&gt;&lt;br/&gt;I want to know how to describe in &amp;lt;data&amp;gt;.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 14:17:45 GMT</pubDate><dc:creator>Sato</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16786.aspx</link><description>Thank you very much!&lt;br/&gt;Your comments were very useful!</description><pubDate>Thu, 23 Jul 2015 14:17:45 GMT</pubDate><dc:creator>Sato</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16784.aspx</link><description>Any /ontrialbegin logic is executed at the very start of a given &amp;lt;trial&amp;gt;, i.e., before anything has happened in that trial. At this point no stimuli have been displayed, no responses have been collected etc. As such, the maximum pupil height at this point would seem to be not that interesting.&lt;br/&gt;&lt;br/&gt;/ontrialend logic is executed at the end of a given &amp;lt;trial&amp;gt;, i.e., after stimuli have been shown, responses collected, etc. At this point, the maximum pupil height would seem to be much more meaningful and interesting, I would think.&lt;br/&gt;&lt;br/&gt;At any rate, though, there is nothing that prevents you from doing both. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.maxpupilheight_start = eyetracker.maxpupilheight; ]&lt;br/&gt;/ ontrialend = [values.maxpupilheight_end = eyetracker.maxpupilheight; ]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [..., values.maxpupilheight_start, values.maxpupilheight_end, ...]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 14:01:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16782.aspx</link><description>Thanks for your reply.&lt;br/&gt;&lt;br/&gt;I was understand that ontrialend is better than ontrialbegin.&lt;br/&gt;Okey?&lt;br/&gt;&lt;br/&gt;How different Do these two data have? </description><pubDate>Thu, 23 Jul 2015 13:34:31 GMT</pubDate><dc:creator>Sato</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16781.aspx</link><description>Glancing over it, that code looks okay to me. You'd usually want to read out the maxpupilheight property /ontrialend, though, not /ontrialbegin. You can find example eye tracking / Tobii scripts here:&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/download/library/Tobii/"&gt;https://www.millisecond.com/download/library/Tobii/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Those should be helpful in terms of how to approach different paradigms / using the &amp;lt;eyetracker&amp;gt; element and its properties.&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 13:23:33 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16780.aspx</link><description>Dear Dave,&lt;br/&gt;Thanks for your reply.&lt;br/&gt;&lt;br/&gt;I understand.&lt;br/&gt;I wanted to know the absolute time to synchronize with the eye tracking data.&lt;br/&gt;&lt;br/&gt;In order to know the pupil size of each trial, to buy Toby of plug-in, and I have to make scripts like following?&lt;br/&gt;&lt;br/&gt;&amp;lt;eyetracker&amp;gt;&lt;br/&gt;/ plugin = "tobii"&lt;br/&gt;&amp;lt;/eyetracker&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [...values.maxpupilheight]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial&amp;gt;&lt;br/&gt;ontrialbegin = [values.maxpupilheight = eyetracker.maxpupilheight]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;value&amp;gt;&lt;br/&gt;/maxpupilheight = 0&lt;br/&gt;&amp;lt;/value&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 12:38:29 GMT</pubDate><dc:creator>Sato</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16772.aspx</link><description>As you already noted, the currenttime property does not include milliseconds and cannot be made to include them. Nor is there any other property that would include milliseconds in addition to hours, minutes and seconds.&lt;br/&gt;&lt;br/&gt;If you can live with *relative* time elapsed (in milliseconds) since the script started executing, you can use the script.elapsedtime property.&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 07:17:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16767.aspx</link><description>I wrote following scripts.&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [... values.currenttime, ...]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&amp;lt;value&amp;gt;&lt;br/&gt;/currenttime = 0&lt;br/&gt;&amp;lt;/value&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currenttime = script.currenttime]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;I could display the time. However I would like to display the millisecond.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Now, 14:24:57 &amp;nbsp;[O'clock, minutes, seconds]&amp;nbsp;&lt;br/&gt;Good, 14:24:57:134 [O'clock, minutes, seconds, milliseconds]</description><pubDate>Wed, 22 Jul 2015 22:31:55 GMT</pubDate><dc:creator>Sato</dc:creator></item><item><title>RE: How to record the local time?</title><link>https://forums.millisecond.com/Topic16766.aspx</link><description>I would like to know the times that  each trial started.</description><pubDate>Wed, 22 Jul 2015 21:42:12 GMT</pubDate><dc:creator>Sato</dc:creator></item></channel></rss>