0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

First steps in the sample app

This commit is contained in:
Sergey Yagovtsev 2016-02-18 00:49:32 +03:00
parent f4e3a83390
commit 1f80b87816

View File

@ -1,4 +1,18 @@
#include "profiler/profiler.h"
#include <chrono>
#include <thread>
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()
{