Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RendimientoDesplazamientoDerecha
- {
- static void Main()
- {
- System.Diagnostics.Stopwatch cronometro = new System.Diagnostics.Stopwatch();
- cronometro.Start();
- byte divisionConBitWise = 3 >> 2;
- cronometro.Stop();
- Console.WriteLine("Tiempo transcurrido: {0}", cronometro.Elapsed.TotalMilliseconds); // 0.0005 (puede variar)
- cronometro.Reset();
- cronometro.Start();
- byte divisionConMathPow = (byte)(3 / Math.Pow(2, 2));
- Console.WriteLine("Tiempo transcurrido: {0}", cronometro.Elapsed.TotalMilliseconds); // 0.0061 (puede variar)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement