public int getDPS()
{
TimeSpan timeSpan1 = this.dpsEnd - this.dpsStart;
float num = (float)timeSpan1.Milliseconds / 1000f + (float)timeSpan1.Seconds + (float)timeSpan1.Minutes / 60f;
if ((double)num >= 3.0)
{
this.dpsStart = DateTime.Now;
this.dpsStart = this.dpsStart.AddSeconds(-1.0);
this.dpsDamage = (int)((double)this.dpsDamage / (double)num);
TimeSpan timeSpan2 = this.dpsEnd - this.dpsStart;
num = (float)timeSpan2.Milliseconds / 1000f + (float)timeSpan2.Seconds + (float)timeSpan2.Minutes / 60f;
}
if ((double)num < 1.0)
num = 1f;
return (int)((float)this.dpsDamage / num);
}