template <typename T>
struct TraceTimestampTraits
A function for converting an abstract timestamp into a
perfetto::TraceTimestamp struct. By specialising this template and defining
static ConvertTimestampToTraceTimeNs function in it the user can register
additional timestamp types. The return value should specify the
clock domain used by the timestamp as well as its value.
The supported clock domains are the ones described in
perfetto.protos.ClockSnapshot. However, custom clock IDs (>=64) are
reserved for internal use by the SDK for the time being.
The timestamp value should be in nanoseconds regardless of the clock domain.