46 TimeStamp timestamp[5];
53 std::cout << std::endl;
54 std::cout <<
"***********************************************************" << std::endl;
55 std::cout <<
" Constructors" << std::endl;
56 std::cout <<
"***********************************************************" << std::endl;
57 std::cout << std::endl;
62 for (
int i = 0; i < 4; ++i ) {
65 timestamp[0] = stopwatch.split();
70 timestamp[1] = stopwatch.split();
74 timestamp[2] = stopwatch.split();
78 for (
int i = 0; i < 4; ++i ) {
81 timestamp[3] = stopwatch.split();
85 for (
int i = 0; i < 4; ++i ) {
88 timestamp[4] = stopwatch.split();
90 std::cout <<
"carray [manual] : " << timestamp[4] << std::endl;
91 std::cout <<
"Array [blueprint]: " << timestamp[2] << std::endl;
92 std::cout <<
"Array [manual] : " << timestamp[0] << std::endl;
93 std::cout <<
"Array [comma] : " << timestamp[1] << std::endl;
94 std::cout <<
"Vector [manual] : " << timestamp[3] << std::endl;
96 std::cout << std::endl;
97 std::cout <<
"***********************************************************" << std::endl;
98 std::cout <<
" Accessors" << std::endl;
99 std::cout <<
"***********************************************************" << std::endl;
100 std::cout << std::endl;
105 for (
int i = 0; i < 4; ++i ) { elements[i] = array1[i]; }
106 timestamp[0] = stopwatch.split();
108 for (
int i = 0; i < 4; ++i ) { elements[i] = array1.
at(i); }
109 timestamp[1] = stopwatch.split();
111 for (
int i = 0; i < 4; ++i ) { elements[i] = v1[i]; }
112 timestamp[2] = stopwatch.split();
114 for (
int i = 0; i < 4; ++i ) { elements[i] = v1.at(i); }
115 timestamp[3] = stopwatch.split();
117 for (
int i = 0; i < 4; ++i ) { elements[i] = a1[i]; }
118 timestamp[4] = stopwatch.split();
120 std::cout <<
"carray [] : " << timestamp[4] << std::endl;
121 std::cout <<
"Array [] : " << timestamp[0] << std::endl;
122 std::cout <<
"Array at : " << timestamp[1] << std::endl;
123 std::cout <<
"Vector [] : " << timestamp[2] << std::endl;
124 std::cout <<
"Vector at : " << timestamp[3] << std::endl;
126 std::cout << std::endl;
127 std::cout <<
"***********************************************************" << std::endl;
128 std::cout <<
" Setters" << std::endl;
129 std::cout <<
"***********************************************************" << std::endl;
130 std::cout << std::endl;
133 for (
int i = 0; i < 4; ++i ) { array1[i] = 3; }
134 timestamp[0] = stopwatch.split();
137 timestamp[1] = stopwatch.split();
139 for (
int i = 0; i < 4; ++i ) { v1[i] = 3; }
140 timestamp[2] = stopwatch.split();
142 for (
int i = 0; i < 4; ++i ) { a1[i] = 3; }
143 timestamp[3] = stopwatch.split();
145 std::cout <<
"carray [manual] : " << timestamp[3] << std::endl;
146 std::cout <<
"Array [blueprint]: " << timestamp[1] << std::endl;
147 std::cout <<
"Array [manual] : " << timestamp[0] << std::endl;
148 std::cout <<
"Vector [manual] : " << timestamp[2] << std::endl;