mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
First steps in the sample app
This commit is contained in:
parent
f4e3a83390
commit
1f80b87816
@ -1,4 +1,18 @@
|
|||||||
#include "profiler/profiler.h"
|
#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()
|
int main()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user