Don't use std::chrono_literals
This commit is contained in:
parent
486dc5102e
commit
8ee1c167b9
@ -209,7 +209,6 @@ void stopwatch_example()
|
|||||||
spdlog::info("Stopwatch: {} seconds", sw);
|
spdlog::info("Stopwatch: {} seconds", sw);
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
|
||||||
void udp_example()
|
void udp_example()
|
||||||
{
|
{
|
||||||
spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091);
|
spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091);
|
||||||
@ -217,9 +216,9 @@ void udp_example()
|
|||||||
my_logger->set_level(spdlog::level::debug);
|
my_logger->set_level(spdlog::level::debug);
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
my_logger->info("hello world {}", i);
|
my_logger->info("hello world {}", i);
|
||||||
#ifndef _WIN32
|
#ifdef _WIN32
|
||||||
// sendto() on winsock will drop packets if sent too quickly
|
// sendto() on winsock will drop packets if sent too quickly
|
||||||
std::this_thread::sleep_for(40ms);
|
std::this_thread::sleep_for(std::chrono::milliseconds(40));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user