Skip to content

Commit

Permalink
Merge pull request akkadotnet#1652 from Silv3rcircl3/Implemented_Star…
Browse files Browse the repository at this point in the history
…tTime_and_Uptime

Fixed static Uptime context.
  • Loading branch information
Aaronontheweb committed Jan 18, 2016
2 parents 339fbf8 + 46df3f5 commit e8421d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Akka/Actor/ActorSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public abstract class ActorSystem : IActorRefFactory, IDisposable
/// <summary>
/// Up-time of this actor system.
/// </summary>
public TimeSpan Uptime => MonotonicClock.ElapsedHighRes;
public TimeSpan Uptime => MonotonicClock.ElapsedHighRes - _creationTime;

private readonly TimeSpan _creationTime = MonotonicClock.ElapsedHighRes;

/// <summary>
/// Creates a new ActorSystem with the specified name, and the specified Config
Expand Down

0 comments on commit e8421d4

Please sign in to comment.