22 lines
359 B
C++
22 lines
359 B
C++
#include <iostream>
|
|
#include <thread>
|
|
#include <chrono>
|
|
#include "my_start.hpp"
|
|
|
|
int main() {
|
|
|
|
my_start();
|
|
|
|
for (int i = 0; i < 5; ++i) {
|
|
std::this_thread::sleep_for(std::chrono::seconds(25));
|
|
if (i % 2 == 0) {
|
|
n_ok_requests++;
|
|
} else {
|
|
n_fail_requests++;
|
|
}
|
|
}
|
|
|
|
my_fin();
|
|
|
|
return 0;
|
|
} |