天津23维预案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
418 B

using System;
using System.Diagnostics;
internal class ProfilerTest//Profiler改为ProfilerTest,要不然与UnityEngine.Profiler冲突
{
private Stopwatch watch = new Stopwatch();
public void Start()
{
watch.Reset();
watch.Start();
}
public void Stop()
{
watch.Stop();
}
public long ElapsedTicks
{
get { return watch.ElapsedTicks; }
}
}