From 1f80b87816a394e16fb9513be8a2b346c8d348f4 Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Thu, 18 Feb 2016 00:49:32 +0300 Subject: [PATCH] First steps in the sample app --- sample/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sample/main.cpp b/sample/main.cpp index 313b86f..9de56e4 100644 --- a/sample/main.cpp +++ b/sample/main.cpp @@ -1,4 +1,18 @@ #include "profiler/profiler.h" +#include +#include + +void shortTimeFunction(){ + PROFILER_BEGIN_FUNCTION_BLOCK; + std::this_thread::sleep_for(std::chrono::milliseconds(5)); +} + +void longTimeFunction(){ + PROFILER_BEGIN_FUNCTION_BLOCK; + std::this_thread::sleep_for(std::chrono::milliseconds(1)); +} + + int main() {