public FKFilterTrace(uint devId, FKUSBTRACER_REQUEST_TYPE type, FKUSBTRACER_REQUEST_PARAMS params_,
                      FKUSBTRACER_TIMESTAMP timestamp, byte[] buffer)
 {
     DeviceId  = devId;
     Type      = type;
     Params    = params_;
     Timestamp = timestamp;
     Buffer    = buffer;
 }
        public FKUSBTRACER_TIMESTAMP GetTimestampDelta(FKFilterTrace prevTrace)
        {
            FKUSBTRACER_TIMESTAMP delta = new FKUSBTRACER_TIMESTAMP();

            if (prevTrace.Timestamp.Seconds > 0 || prevTrace.Timestamp.USec > 0)
            {
                delta.Seconds = Timestamp.Seconds - prevTrace.Timestamp.Seconds;
                delta.USec    = Timestamp.USec - prevTrace.Timestamp.USec;
                if (delta.USec < 0)
                {
                    delta.USec = 1000000 + delta.USec;
                }
            }
            return(delta);
        }