main.cpp 640 B

1234567891011121314151617181920212223242526272829
  1. #include <iostream>
  2. #include <thread>
  3. #include "sys_time.h"
  4. #include "log.h"
  5. #include "data_queue.h"
  6. #include "math_tool.h"
  7. int main()
  8. {
  9. initLog("PMD", "./pmd.log", 0);
  10. infra::DataQueue<std::string> queue;
  11. queue.push("aaa");
  12. queue.push("ddd");
  13. LOG_WARN("size: %lu", queue.size());
  14. int64_t s = infra::SysTime::current_ms();
  15. std::this_thread::sleep_for(std::chrono::seconds(2));
  16. int64_t e = infra::SysTime::current_ms();
  17. std::cout << e - s << std::endl;
  18. LOG_WARN("e-s: %lu", e - s);
  19. infra::Point3d<float> ee(1.1, 3.2, 5.6);
  20. std::cout << ee.x << ee.y << ee.z << std::endl;
  21. getchar();
  22. return 0;
  23. }