示例#1
0
        /// <summary>
        /// If the fileRefererenceDTPair and setupInfo are non-null, it sets all of the fileDelta
        /// values from the difference between the recorded time(stamp) values and their corresponding values
        /// from the given fileReferenceDTPair.  I8 versions of these are scaled using the I8 to/from seconds
        /// scaling defined in the setupInfo.
        /// Otherwise does nothing.
        /// </summary>
        internal DateTimeStampPair UpdateFileDeltas(DateTimeStampPair fileReferenceDTPair)
        {
            if (fileReferenceDTPair != null)
            {
                fileDeltaTimeStamp = (qpcTimeStamp.Time - fileReferenceDTPair.qpcTimeStamp.Time);
            }

            return(this);
        }
示例#2
0
        /// <summary>
        /// Copy constructor helper method.  Sets the contents of this object to match the given other object, or to Zero if the other object is null
        /// <para/>Supports call chaining
        /// </summary>
        public DateTimeStampPair SetFrom(DateTimeStampPair other)
        {
            if (other == null)
            {
                other = internalZero;
            }

            qpcTimeStamp       = other.qpcTimeStamp;
            dateTime           = other.dateTime;
            utcTimeSince1601   = other.utcTimeSince1601;
            fileDeltaTimeStamp = other.fileDeltaTimeStamp;

            return(this);
        }
示例#3
0
 /// <summary>
 /// Copy constructor.  If the given value other is null then this constructor sets the current value to Zero
 /// </summary>
 public DateTimeStampPair(DateTimeStampPair other)
 {
     SetFrom(other);
 }