Skip to content

Commit

Permalink
[C#] Fix iOS issue with easy_profiler (force std::chrono::high_resolu…
Browse files Browse the repository at this point in the history
…tion_clock)
  • Loading branch information
JoshEngebretson committed Jul 5, 2017
1 parent 20c9f07 commit 05974d7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ endif (WIN32)
set(BUILD_WITH_CHRONO_STEADY_CLOCK OFF CACHE BOOL "Use std::chrono::steady_clock as a timer" )
set(BUILD_WITH_CHRONO_HIGH_RESOLUTION_CLOCK OFF CACHE BOOL "Use std::chrono::high_resolution_clock as a timer")

# ATOMIC BEGIN
# force std::chrono::high_resolution_clock usage on iOS
if (IOS)
set(BUILD_WITH_CHRONO_HIGH_RESOLUTION_CLOCK ON)
endif()
# ATOMIC END

message(STATUS "-------- EASY_PROFILER OPTIONS: --------")
if (BUILD_WITH_CHRONO_STEADY_CLOCK)
message(STATUS " Use std::chrono::steady_clock as a timer")
Expand Down

0 comments on commit 05974d7

Please sign in to comment.