Commit 9c612c7b authored by Šmelko Adam Mgr.'s avatar Šmelko Adam Mgr.
Browse files

Add CV2.

parent 9ed060fa
#include <vector>
#include <chrono>
#include <thread>
void f(std::vector<int>/*&*/ v, size_t depth)
{
if (depth > 1'000'000)
return;
std::chrono::milliseconds timespan(10);
std::this_thread::sleep_for(timespan);
f(v, depth + 1);
}
int main()
{
std::vector<int> v(1'000'000, 0);
f(v, 0);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment