⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 3 bits 转化为 4bits
💻 CPP
字号:
#include <iostream>
#include <time.h>
#include <sys/timeb.h>

using namespace std;
#include "Nibble.h"

int main()
{
	CNibble nibble;

	char* pBuffer = new char[1024 * 1024];
	for(int i = 0; i < 1024 * 1024; i ++)
	{
		pBuffer[i] = 0;
	}
	char* rst = new char[2 * 1024 * 1024];

	struct _timeb tstruct;
	struct _timeb tstruct1;
	_ftime( &tstruct );
	for(i = 0; i < 100; i ++)
	{
		nibble.TransForm(pBuffer, 1024 * 1024, (char*) rst);
	}
	_ftime( &tstruct1 );
	long time1;
	time1 = tstruct1.time*1000 + tstruct1.millitm - tstruct.time*1000 - tstruct.millitm;
	cout<<time1<<endl;
//	delete pOutBuffer;
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -