Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
oir committed May 11, 2024
1 parent 7a7cc98 commit cabb6d3
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,6 @@ int main(int /*argc*/, char** /*argv*/) {
using namespace std::chrono_literals;
namespace bk = barkeep;

{
std::vector<float> v(300, 0);
std::iota(v.begin(), v.end(), 1); // 1, 2, 3, ..., 300
float sum = 0;
bk::IterableBar bar(v, {.message = "Summing", .interval = .02});
std::this_thread::sleep_for(2s);
std::cout << "..." << std::endl;
std::this_thread::sleep_for(2s);

for (auto x : bar) {
std::this_thread::sleep_for(1.s / x);
sum += x;
}

std::this_thread::sleep_for(2s);
std::cout << "..." << std::endl;
std::this_thread::sleep_for(2s);

std::cout << "Sum: " << sum << std::endl;
}

for (auto sty : {bk::Ellipsis, bk::Bar, bk::Moon}) {
auto anim =
bk::Animation({.message = "Working", .style = sty, .interval = 0.5s});
Expand Down

0 comments on commit cabb6d3

Please sign in to comment.