blob: be04bcb768d498f93e161f26729e8d997cecc850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "Runtime/Profiler/DeprecatedFrameStatsProfiler.h"
#include "Runtime/Profiler/TimeHelper.h"
#if UNITY_OSX || UNITY_IPHONE
#include <mach/mach_time.h>
#endif
FrameStats::Timestamp GetTimestamp()
{
#if UNITY_OSX || UNITY_IPHONE
return mach_absolute_time();
#elif UNITY_ANDROID
return START_TIME;
#else
return (signed long long)(START_TIME);//GetTimeSinceStartup ()*1000000000.0);
#endif
}
static FrameStats gFrameStats;
FrameStats const& GetFrameStats()
{
return gFrameStats;
}
|