Advertisement
Guest User

Untitled

a guest
May 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. //using System.Linq;
  4. using System.Text;
  5. using System.Diagnostics;
  6.  
  7. namespace discarded
  8. {
  9.     class mainclass
  10.     {
  11.         static String GetLeftChar(String text)
  12.         {
  13.             String myText = text.Remove(1, text.Length - 1);
  14.             return myText;
  15.         }
  16.  
  17.         static void Main()
  18.         {
  19.             Process currentProc = Process.GetCurrentProcess();
  20.             long memoryUsed = currentProc.PrivateMemorySize64;
  21.             string memInMeg = GetLeftChar(memoryUsed.ToString()) + "Mb";
  22.  
  23.             try
  24.             {
  25.                 Console.Title = "RS Emulator version 1.0 Total Processes[" + memInMeg + "]";
  26.                 Console.ReadLine();
  27.             }
  28.             catch (Exception e)
  29.             {
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement