public void CalcolaRPM (string giriRicevuti, out double RPM)
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
if (giriRicevuti == "1/r")
stopWatch.Stop();
}
double elapsedT = stopWatch.ElapsedMilliseconds;
stopWatch.Restart();
RPM = elapsedT;
giriRicevuti = "";