GetTimestampFrequency

Returns the frequency used in the internal representation of the timestamps.

Syntax

GetTimestampFrequency(doc)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document

Return

Returns the frequency (in Hertz) used in the specified file to store the timestamps.

Note

Internally, the timestamps are stored as 64-bit integers representing the number of time ticks from the start of the experiment. The time tick is equal to 1./Timestamp_Frequency.

Examples

Python

import nex
doc = nex.GetActiveDocument()
tsFreq = nex.GetTimestampFrequency(doc)

NexScript

doc = GetActiveDocument()
tsFreq = GetTimestampFrequency(doc)