18#ifndef QGST_CLOCKTIME_H
19#define QGST_CLOCKTIME_H
41 static const quint64 None = -1;
43 inline ClockTime(quint64 t = None) : m_clocktime(t) {}
44 inline operator quint64()
const {
return m_clocktime; }
47 inline bool isValid()
const {
return m_clocktime != None; }
56 static ClockTime fromTime(
const QTime & time);
59 inline static ClockTime fromSeconds(quint64 seconds);
62 inline static ClockTime fromMSecs(quint64 msec);
65 inline static ClockTime fromUSecs(quint64 usec);
73 return ClockTime(seconds * 1000 * 1000 * 1000);
A datatype to hold a time, measured in nanoseconds.
static ClockTime fromUSecs(quint64 usec)
static ClockTime fromMSecs(quint64 msec)
static ClockTime fromSeconds(quint64 seconds)
Wrappers for GStreamer classes.