v2.0.0
Loading...
Searching...
No Matches
fiff_time.h File Reference

Compact seconds + microseconds time record used by FIFF measurement, event and HPI tags. More...

#include "fiff_global.h"
#include <QtGlobal>
Include dependency graph for fiff_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  FIFFLIB
 FIFF file I/O, in-memory data structures and high-level readers/writers.

Functions

bool FIFFLIB::operator== (const FiffTime &a, const FiffTime &b)
bool FIFFLIB::operator!= (const FiffTime &a, const FiffTime &b)

Detailed Description

Compact seconds + microseconds time record used by FIFF measurement, event and HPI tags.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
February 2026

Replaces the legacy fiffTimeRec struct from MNE-C with a small C++ class whose layout matches the on-disk pair of 32-bit integers stored in FIFF_MEAS_DATE, FIFF_DATA_BUFFER timestamps and continuous-HPI position records. Times are represented as Unix seconds since the 1970-01-01T00:00:00 UTC epoch plus a microsecond fraction, the same convention used by mne.io.meas_info in MNE-Python so date round-trip between the two libraries is loss-less to microsecond resolution.

Definition in file fiff_time.h.