mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 08:01:51 +08:00
Rename the function now() as well
This commit is contained in:
parent
88f24f4763
commit
67edc2d77f
@ -464,7 +464,7 @@ namespace profiler {
|
||||
|
||||
\ingroup profiler
|
||||
*/
|
||||
PROFILER_API timestamp_t now();
|
||||
PROFILER_API timestamp_t timeNow();
|
||||
|
||||
/** Convert ticks to nanoseconds.
|
||||
|
||||
@ -766,7 +766,7 @@ namespace profiler {
|
||||
|
||||
}
|
||||
#else
|
||||
inline EASY_CONSTEXPR_FCN timestamp_t now() { return 0; }
|
||||
inline EASY_CONSTEXPR_FCN timestamp_t timeNow() { return 0; }
|
||||
inline EASY_CONSTEXPR_FCN timestamp_t toNanoseconds(timestamp_t) { return 0; }
|
||||
inline EASY_CONSTEXPR_FCN timestamp_t toMicroseconds(timestamp_t) { return 0; }
|
||||
inline const BaseBlockDescriptor* registerDescription(EasyBlockStatus, const char*, const char*, const char*, int, block_type_t, color_t, bool = false)
|
||||
@ -898,7 +898,7 @@ namespace profiler {
|
||||
|
||||
\ingroup profiler
|
||||
*/
|
||||
EASY_FORCE_INLINE timestamp_t currentTime() { return now(); }
|
||||
EASY_FORCE_INLINE timestamp_t currentTime() { return timeNow(); }
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -127,7 +127,7 @@ PROFILER_API const char* apiVersionName()
|
||||
|
||||
#if !defined(EASY_PROFILER_API_DISABLED)
|
||||
|
||||
PROFILER_API profiler::timestamp_t now()
|
||||
PROFILER_API profiler::timestamp_t timeNow()
|
||||
{
|
||||
return profiler::clock::now();
|
||||
}
|
||||
@ -295,7 +295,7 @@ PROFILER_API profiler::timestamp_t main_thread_frameTimeLocalAvg(profiler::Durat
|
||||
|
||||
#else // EASY_PROFILER_API_DISABLED
|
||||
|
||||
PROFILER_API profiler::timestamp_t now() { return 0; }
|
||||
PROFILER_API profiler::timestamp_t timeNow() { return 0; }
|
||||
PROFILER_API profiler::timestamp_t toNanoseconds(profiler::timestamp_t) { return 0; }
|
||||
PROFILER_API profiler::timestamp_t toMicroseconds(profiler::timestamp_t) { return 0; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user