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)); }
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); }
private static void PrintRating(ulong rating) { LzmaBench.PrintValue(rating / 1000000UL); Console.Write(" MIPS"); }