Code:
#include <time.h>
#include <iostream>
#define TEST_TIMES 1000000000
using namespace std;
int main()
{
unsigned char a = 'c';
unsigned char b[1] = {'c'};
unsigned char c[1][1][1] = {'c'};;
unsigned char temp;
clock_t ct = clock();
for(int i = 0;i < TEST_TIMES;++i)
temp = a;
cout<<clock() - ct<<endl;
Leave a comment: