[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")] public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize); /// <summary> /// 释放内存 /// </summary> public static void Clea…
using UnityEngine; using System.Diagnostics; using System.Text; using UnityEngine.UI; public class simpleTest : MonoBehaviour { System.TimeSpan t1; System.TimeSpan t2; /// <summary> /// Main()会被UNITY调用!,只要名字是Main(),不管是public, static, void, int /// 当…