45 : std::pair<time_t, int64_t>(sec, fs)
51 second = (tnow - first) * FS_PER_SECOND;
60 void SetSec(time_t sec)
63 void SetFs(int64_t fs)
66 std::string PrettyPrint()
const;
70 int64_t dsec = first - rhs.first;
71 int64_t dfs = second - rhs.second;
73 return dsec*FS_PER_SECOND + dfs;
Data for a marker.
Definition: Marker.h:84
TimePoint m_timestamp
Timestamp of the parent waveform (UTC)
Definition: Marker.h:93
TimePoint GetMarkerTime()
Helper to get the absolute timestamp of the marker.
Definition: Marker.h:101
bool operator<(const Marker &rhs) const
Helper for sorting.
Definition: Marker.h:108
int64_t m_offset
Position of the marker within the parent waveform (X axis units)
Definition: Marker.h:96
std::string m_name
Display name of the marker.
Definition: Marker.h:105
A timestamp, measured in seconds + femtoseconds.
Definition: Marker.h:42