Free cookie consent management tool by TermsFeed Policy Generator

Changeset 733


Ignore:
Timestamp:
11/11/08 13:03:41 (16 years ago)
Author:
kgrading
Message:

implemented a basic first version of the Timer (#346)

Location:
trunk/sources/HeuristicLab.Hive.Client.Core
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/CoreApplication.cs

    r729 r733  
    66using System.Diagnostics;
    77using HeuristicLab.Hive.Client.Common;
     8using System.Timers;
     9using System.Threading;
    810
    911namespace HeuristicLab.Hive.Client.Core {
     
    1113  public class CoreApplication: ApplicationBase {
    1214    public override void Run() {
     15 
    1316      Logging.getInstance().Info(this.Name, "Info Message");
    1417      Logging.getInstance().Error(this.Name, "Error Message");
    1518      Logging.getInstance().Error(this.Name, "Exception Message", new Exception("Exception"));
     19     
     20      Heartbeat beat = new Heartbeat();
     21      beat.Interval = 1000;
     22      beat.StartHeartbeat();
     23      DoRubbish();
     24      Console.WriteLine("done");
     25      Thread.Sleep(99999);
     26    }
     27
     28    private void DoRubbish() {
     29      for (int w = 0; w < 20000000; w++)
     30        for (int x = 0; x < 20000000; x++)
     31          for (int y = 0; y < 20000000; y++) {
     32          }
     33
    1634    }
    1735  }
  • trunk/sources/HeuristicLab.Hive.Client.Core/HeuristicLab.Hive.Client.Core.csproj

    r729 r733  
    6767    <Compile Include="CoreApplication.cs" />
    6868    <Compile Include="CorePlugin.cs" />
     69    <Compile Include="Heartbeat.cs" />
    6970    <Compile Include="Properties\AssemblyInfo.cs" />
    7071  </ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.