v2.0.0
Loading...
Searching...
No Matches
FIFFLIB::FiffTime Class Reference

FIFF time stamp: Unix seconds plus a microsecond fraction matching the on-disk fiffTimeRec record. More...

#include <fiff_time.h>

Public Member Functions

 FiffTime ()
 FiffTime (qint32 p_secs, qint32 p_usecs)
 ~FiffTime ()=default

Static Public Member Functions

static qint32 storageSize ()

Public Attributes

qint32 secs
qint32 usecs

Detailed Description

FIFF time stamp: Unix seconds plus a microsecond fraction matching the on-disk fiffTimeRec record.

Layout is two 32-bit fields (secs, usecs) — the exact representation used by FIFF_MEAS_DATE and the per-buffer timestamps embedded in raw data blocks, so an instance can be streamed in and out without per-field marshalling.

Definition at line 49 of file fiff_time.h.

Constructor & Destructor Documentation

◆ FiffTime() [1/2]

FIFFLIB::FiffTime::FiffTime ( )
inline

Default constructor. Initializes both fields to zero.

Definition at line 56 of file fiff_time.h.

◆ FiffTime() [2/2]

FIFFLIB::FiffTime::FiffTime ( qint32 p_secs,
qint32 p_usecs )
inline

Parameterized constructor.

Parameters
[in]p_secsGMT time in seconds since epoch.
[in]p_usecsFraction of seconds in microseconds.

Definition at line 69 of file fiff_time.h.

◆ ~FiffTime()

FIFFLIB::FiffTime::~FiffTime ( )
default

Destroys the FiffTime.

Member Function Documentation

◆ storageSize()

qint32 FIFFLIB::FiffTime::storageSize ( )
inlinestatic

Size of the old struct (fiffTimeRec) 2*int = 2*4 = 8.

Returns
the size of the old struct fiffTimeRec.

Definition at line 98 of file fiff_time.h.

Member Data Documentation

◆ secs

qint32 FIFFLIB::FiffTime::secs

GMT time in seconds since epoch.

Definition at line 90 of file fiff_time.h.

◆ usecs

qint32 FIFFLIB::FiffTime::usecs

Fraction of seconds in microseconds.

Definition at line 91 of file fiff_time.h.


The documentation for this class was generated from the following file: