public PhaseTime(int interval) { this.timer = new Timer(); this.timer.Interval = interval; this.timer.Tick += new EventHandler(on_end); this.watch = StopwatchSingleton.initialize(); }
public static StopwatchSingleton initialize() { if (watch_entity == null) { watch_entity = new StopwatchSingleton(); watch_entity.watch = new Stopwatch(); } return(watch_entity); }