Skip to content

ooolize/Planck

Repository files navigation

Planck

Planck

Introduce

一个高性能定时器

Feature

  • 10us级别精度
  • 自定义每个timer唤醒策略

Use

auto &manager = planck::Locator::getTimerManager();
manager.setCPU(5);
manager.start();

auto func = [](){ std::cout << "Planck " << std::endl; };
auto id1 = manager.addTimer(offset, interval, count, func);