예제 #1
0
 private static void PrintResults(
     uint dictionarySize,
     ulong elapsedTime,
     ulong size,
     bool decompressMode,
     ulong secondSize)
 {
     LzmaBench.PrintValue(LzmaBench.MyMultDiv64(size, elapsedTime) / 1024UL);
     Console.Write(" KB/s  ");
     LzmaBench.PrintRating(!decompressMode ? LzmaBench.GetCompressRating(dictionarySize, elapsedTime, size) : LzmaBench.GetDecompressRating(elapsedTime, size, secondSize));
 }
예제 #2
0
        private static void PrintResults(uint dictionarySize, ulong elapsedTime, ulong size, bool decompressMode, ulong secondSize)
        {
            ulong num = LzmaBench.MyMultDiv64(size, elapsedTime);

            LzmaBench.PrintValue(num / 1024uL);
            Console.Write(" KB/s  ");
            ulong rating;

            if (decompressMode)
            {
                rating = LzmaBench.GetDecompressRating(elapsedTime, size, secondSize);
            }
            else
            {
                rating = LzmaBench.GetCompressRating(dictionarySize, elapsedTime, size);
            }
            LzmaBench.PrintRating(rating);
        }