Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- //using System.Linq;
- using System.Text;
- using System.Diagnostics;
- namespace discarded
- {
- class mainclass
- {
- static String GetLeftChar(String text)
- {
- String myText = text.Remove(1, text.Length - 1);
- return myText;
- }
- static void Main()
- {
- Process currentProc = Process.GetCurrentProcess();
- long memoryUsed = currentProc.PrivateMemorySize64;
- string memInMeg = GetLeftChar(memoryUsed.ToString()) + "Mb";
- try
- {
- Console.Title = "RS Emulator version 1.0 Total Processes[" + memInMeg + "]";
- Console.ReadLine();
- }
- catch (Exception e)
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement