67 static void begin(
const std::string &_uid,
const std::string &_message)
71 data.
startClock = std::chrono::system_clock::now();
75 std::cout <<
"\033[0m\033[1m\033[32m";
77 std::cout <<
"################";
78 for(
unsigned int i = 0; i < _message.length(); ++i)
82 std::cout <<
"#" << std::endl;
83 std::cout <<
"# Begin block: " << _message <<
" #" << std::endl;
84 std::cout <<
"################";
85 for(
unsigned int i = 0; i < _message.length(); ++i)
89 std::cout <<
"#" << std::endl;
91 std::cout <<
"\033[0m";
100 static void end(
const std::string &_uid)
104 std::cerr <<
"Can't found a block with this uid: " << _uid << std::endl;
109 std::chrono::time_point< std::chrono::system_clock > endClock;
110 endClock = std::chrono::system_clock::now();
111 std::chrono::duration< double > elapsed_seconds =
115 std::cout <<
"\033[0m\033[1m\033[32m";
117 std::cout <<
"################";
118 for(
unsigned int i = 0; i < data.
message.length(); ++i)
122 std::cout <<
"#" << std::endl;
124 std::cout <<
"# End block: " << data.
message <<
" #" << std::endl;
125 std::cout <<
"# Elapsed time: " << elapsed_seconds.count() <<
"s #"
128 std::cout <<
"################";
129 for(
unsigned int i = 0; i < data.
message.length(); ++i)
133 std::cout <<
"#" << std::endl;
135 std::cout <<
"\033[0m";
147 std::chrono::time_point< std::chrono::system_clock >
startClock;
150 static std::map< std::string, Block::InnerData >
blocks;
156 std::map< std::string, FEVV::Block::InnerData >();