Millisecond Precise


Author
Message
Andrew Papale
Andrew Papale
Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)
Group: Forum Members
Posts: 68, Visits: 243
Dave,

With script.currenttime I can get an HH:MM:SS precise OS clock time, precise to seconds.  Is there any way to get this precise to milliseconds (HH:MM:SS.ss)?

Thanks,
Andrew
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 106K
Andrew Papale - 1/9/2025
Dave,

With script.currenttime I can get an HH:MM:SS precise OS clock time, precise to seconds.  Is there any way to get this precise to milliseconds (HH:MM:SS.ss)?

Thanks,
Andrew

Under Inquisit 6: No.
Andrew Papale
Andrew Papale
Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)Expert (1,000 reputation)
Group: Forum Members
Posts: 68, Visits: 243
Dave - 1/9/2025
Andrew Papale - 1/9/2025
Dave,

With script.currenttime I can get an HH:MM:SS precise OS clock time, precise to seconds.  Is there any way to get this precise to milliseconds (HH:MM:SS.ss)?

Thanks,
Andrew

Under Inquisit 6: No.

Is this possible in Inquisit 7?

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 106K
Andrew Papale - 1/9/2025
Dave - 1/9/2025
Andrew Papale - 1/9/2025
Dave,

With script.currenttime I can get an HH:MM:SS precise OS clock time, precise to seconds.  Is there any way to get this precise to milliseconds (HH:MM:SS.ss)?

Thanks,
Andrew

Under Inquisit 6: No.

Is this possible in Inquisit 7?

In IQJS, you can use the various methods exposed by the Date object, such as getMilliseconds().

<values>
/ myValue = null
</values>

<text myText>
/ items = ("<%values.myValue%>")
/ fontStyle = ("Arial", 2.08%, false, false, false, false, 5, 1)
</text>

<trial myTrial>
/ onTrialBegin = {
    let d = new Date();
    values.myValue = script.currentTime + ":" + d.getMilliseconds();
}
/ preTrialPause = 500
/ stimulusTimes = [1=myText]
/ validResponse = (" ")
</trial>

<block myBlock>
/ trials = [1=myTrial]
</block>

<expt myExpt>
/ blocks = [1=myBlock]
</expt>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search