Removed some outdated Stopwatch usage code

This commit is contained in:
Travis Nickles 2020-02-12 13:20:11 -06:00
parent af5d06c42b
commit 9890fc7cdf

View File

@ -744,8 +744,6 @@ namespace DS4Windows
public string error; public string error;
public bool firstReport = true; public bool firstReport = true;
public bool oldCharging = false; public bool oldCharging = false;
double curTimeDouble = 0.0;
double oldTimeDouble = 0.0;
DateTime utcNow = DateTime.UtcNow; DateTime utcNow = DateTime.UtcNow;
bool ds4InactiveFrame = true; bool ds4InactiveFrame = true;
bool idleInput = true; bool idleInput = true;
@ -771,8 +769,6 @@ namespace DS4Windows
string currerror = string.Empty; string currerror = string.Empty;
long curtime = 0; long curtime = 0;
long testelapsed = 0; long testelapsed = 0;
Stopwatch sw = new Stopwatch();
sw.Start();
timeoutEvent = false; timeoutEvent = false;
ds4InactiveFrame = true; ds4InactiveFrame = true;
idleInput = true; idleInput = true;
@ -902,15 +898,6 @@ namespace DS4Windows
lastTimeElapsed = (long)lastTimeElapsedDouble; lastTimeElapsed = (long)lastTimeElapsedDouble;
oldtime = curtime; oldtime = curtime;
//curTimeDouble = sw.Elapsed.TotalMilliseconds;
//curtime = sw.ElapsedMilliseconds;
//lastTimeElapsed = curtime - oldtime;
//lastTimeElapsedDouble = (curTimeDouble - oldTimeDouble);
//oldtime = curtime;
//oldTimeDouble = curTimeDouble;
if (conType == ConnectionType.BT && btInputReport[0] != 0x11) if (conType == ConnectionType.BT && btInputReport[0] != 0x11)
{ {
//Received incorrect report, skip it //Received incorrect report, skip it