#include "legacy_coroutines.h" #include #include #include #include #include "error.h" #include "platform.h" static std::uint32_t gtick = get_game_tick_count(); void send_log_impl(const char *format, ...) { va_list args; int task = q_current_task(); char buff2[1000]; va_start(args, format); auto reltik = get_game_tick_count() - gtick; double sec = reltik * 0.001; std::cerr << sec << "[" << task << "]"; vsnprintf(buff2,1000,format, args); std::cerr << buff2 << std::endl; va_end(args); }