#include "stdafx.h"
#include "windows.h"
#include "time.h"
#include <vector>
#include <list>
struct Point
{
int x;
int y;
};
int _tmain(int argc, _TCHAR* argv[])
{
Point p= {0,0};
int count = 1000000;
std::vector< Point > points;
points.resize(count);
LARGE_INTEGER s;
LARGE_INTEGER e,f;
QueryPerformanceCounter(&s);
for ( int cnt = 0; cnt < count; cnt++ )
{
points[cnt] = p;
}
QueryPerformanceCounter(&e);
QueryPerformanceFrequency(&f);
LONGLONG x = e.QuadPart-s.QuadPart;
double d = double(x)/f.QuadPart;
std::cout<<d<<std::endl;
return 0;
}