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 bool firstReport = true;
public bool oldCharging = false;
double curTimeDouble = 0.0;
double oldTimeDouble = 0.0;
DateTime utcNow = DateTime.UtcNow;
bool ds4InactiveFrame = true;
bool idleInput = true;
@ -771,8 +769,6 @@ namespace DS4Windows
string currerror = string.Empty;
long curtime = 0;
long testelapsed = 0;
Stopwatch sw = new Stopwatch();
sw.Start();
timeoutEvent = false;
ds4InactiveFrame = true;
idleInput = true;
@ -902,15 +898,6 @@ namespace DS4Windows
lastTimeElapsed = (long)lastTimeElapsedDouble;
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)
{
//Received incorrect report, skip it