37 lines
961 B
C++
37 lines
961 B
C++
#include "QuickTest.h"
|
|
#include "ICmd.h"
|
|
|
|
#include "lib/api/services/OrderService.server.pb.h"
|
|
#include "lib/mercury/actors/PingPong.h"
|
|
#include "lib/mercury/broker/BrokerProxy.h"
|
|
#include "lib/mercury/common/mercury_common.h"
|
|
#include "lib/mercury/executor/Executor.h"
|
|
#include "lib/utils/PBUtils.h"
|
|
#include "lib/utils/thread_manager.h"
|
|
#include "lib/orderman/events/OrderStateUpdateEvent.h"
|
|
|
|
#include <iostream>
|
|
|
|
namespace bts {
|
|
namespace cmd {
|
|
|
|
using namespace bts::mercury;
|
|
using namespace bts::orderman;
|
|
|
|
int QuickTest::execute(std::vector<std::string> const &) {
|
|
sleep_for(10s);
|
|
for (int i = 0; i < 100; i++) {
|
|
auto t = utils::TimeStamp::now();
|
|
LOG(OrderMan,Info,"Now: {}", (utils::TimeStamp::now() - t).nanoseconds());
|
|
}
|
|
sleep_for(10s);
|
|
return 0;
|
|
}
|
|
|
|
std::string QuickTest::help() {
|
|
return "This is a place holder to make it easy to quickly write discardable "
|
|
"test code";
|
|
}
|
|
} // namespace cmd
|
|
} // namespace bts
|