mirror of
https://github.com/vgough/encfs.git
synced 2024-11-26 09:53:58 +01:00
25 lines
439 B
C++
25 lines
439 B
C++
|
//
|
||
|
// This file is part of Easylogging++ samples
|
||
|
// TIMED_SCOPE sample
|
||
|
//
|
||
|
// Revision 1.0
|
||
|
// @author mkhan3189
|
||
|
//
|
||
|
|
||
|
#include "easylogging++.h"
|
||
|
|
||
|
INITIALIZE_EASYLOGGINGPP
|
||
|
|
||
|
int main(void) {
|
||
|
|
||
|
{
|
||
|
TIMED_SCOPE(timer, "my-block");
|
||
|
for (int i = 0; i <= 500; ++i) {
|
||
|
LOG(INFO) << "This is iter " << i;
|
||
|
}
|
||
|
}
|
||
|
LOG(INFO) << "By now, you should get performance result of above scope";
|
||
|
|
||
|
return 0;
|
||
|
}
|