static void CheckTimer() { if (_tmr == null) { //Get the information immediately for the current caller _info = ResourceMonitor.GetProcessInformation(); _tmr = new Timer(3000); _tmr.Elapsed += Watch; _tmr.Start(); } }
static void Watch(object sender, ElapsedEventArgs e) { _info = ResourceMonitor.GetProcessInformation(); //_memCounter = new System.Diagnostics.PerformanceCounter("Mono Memory", "Total Physical Memory", String.Empty, Environment.MachineName); }