#include <fstream>
#include <sstream>
using namespace std;
// test 测试
wstring strPath;
strPath = _T("e:\\time.log");
wfstream log;
log.open(strPath.c_str(),ios::out|ios::app);
wstringstream ss;
LARGE_INTEGER nLastTime1;
LARGE_INTEGER nLastTime2;
//获取定时器的值。
QueryPerformanceCounter(&nLastTime1);
//获取定时器的值。
QueryPerformanceCounter(&nLastTime2);
//计算时间是花费多少秒。
ss << _T("DrawImageBorders2 span:")<<nLastTime2.QuadPart - nLastTime1.QuadPart<<endl;
log.write(ss.str().c_str(),ss.str().length());
log.close();