mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-11-24 14:18:34 +01:00
minor cleanup
This commit is contained in:
parent
c68121614f
commit
448a55081b
1 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,7 @@ using System.Diagnostics;
|
||||||
namespace Coroutine {
|
namespace Coroutine {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A reference to a currently running coroutine.
|
/// A reference to a currently running coroutine.
|
||||||
/// This is returned by <see cref="CoroutineHandler.Start(IEnumerator{Wait},string)"/>.
|
/// This is returned by <see cref="CoroutineHandler.Start(IEnumerator{Wait},string,int)"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ActiveCoroutine : IComparable<ActiveCoroutine> {
|
public class ActiveCoroutine : IComparable<ActiveCoroutine> {
|
||||||
|
|
||||||
|
@ -99,9 +99,8 @@ namespace Coroutine {
|
||||||
var result = this.enumerator.MoveNext();
|
var result = this.enumerator.MoveNext();
|
||||||
this.stopwatch.Stop();
|
this.stopwatch.Stop();
|
||||||
this.TotalMoveNextTime += this.stopwatch.Elapsed;
|
this.TotalMoveNextTime += this.stopwatch.Elapsed;
|
||||||
if (this.stopwatch.Elapsed > this.MaxMoveNextTime) {
|
if (this.stopwatch.Elapsed > this.MaxMoveNextTime)
|
||||||
this.MaxMoveNextTime = this.stopwatch.Elapsed;
|
this.MaxMoveNextTime = this.stopwatch.Elapsed;
|
||||||
}
|
|
||||||
this.MoveNextCount++;
|
this.MoveNextCount++;
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|
Loading…
Reference in a new issue