public double fseqReverse() { Double milliSeconds = 0D; T myT = default(T); DateTime start = DateTime.Now; for (UInt32 i = 0; i < nOperations; i++) { { FNSeq <T> fsReversed = theFContainer.reverse(); myT = fsReversed.itemAt(nContLength - 1); } } DateTime end = DateTime.Now; milliSeconds += (end - start).TotalMilliseconds; return(milliSeconds); }
public double fseqElementAt() { Double milliSeconds = 0D; int indMid = nContLength / 2; T elem; for (UInt32 i = 0; i < nOperations; i++) { DateTime start = DateTime.Now; { elem = theFContainer2.itemAt(indMid); } DateTime end = DateTime.Now; milliSeconds += (end - start).TotalMilliseconds; } return(milliSeconds); }
public double fseqConcat() { Double milliSeconds = 0D; T myT = default(T); DateTime start = DateTime.Now; for (UInt32 i = 0; i < nOperations; i++) { { FNSeq <T> theResult = theFContainer.Merge(theFContainer2); myT = theResult.itemAt(nContLength + nContLength - 1); } } DateTime end = DateTime.Now; milliSeconds += (end - start).TotalMilliseconds; return(milliSeconds); }
public double fseqTake() { Double milliSeconds = 0D; T myT = default(T); int halfLength = nContLength / 2; DateTime start = DateTime.Now; for (UInt32 i = 0; i < nOperations; i++) { { FNSeq <T> skippedFSeq = theFContainer.take(halfLength); myT = skippedFSeq.itemAt(halfLength - 1); } } DateTime end = DateTime.Now; milliSeconds += (end - start).TotalMilliseconds; return(milliSeconds); }