From 2b72d1cf9140d3ae0cfc469d5e5660c7aca52e8d Mon Sep 17 00:00:00 2001 From: wyy Date: Fri, 21 Mar 2014 11:55:40 +0800 Subject: [PATCH] calc time consumed in load_test --- test/load_test.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/load_test.cpp b/test/load_test.cpp index 9129a99..1b3a618 100644 --- a/test/load_test.cpp +++ b/test/load_test.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "../src/Limonp/ArgvContext.hpp" #include "../src/Limonp/io_functs.hpp" @@ -30,14 +31,15 @@ void cut(const ISegment * seg, const char * const filePath, size_t times = 10) int main(int argc, char ** argv) { + MixSegment seg("../dict/jieba.dict.utf8", "../dict/hmm_model.utf8"); + if(!seg) { - MixSegment seg("../dict/jieba.dict.utf8", "../dict/hmm_model.utf8"); - if(!seg) - { - cout<<"seg init failed."<