mirror of
https://gitlab.com/Nils_Kasulke/spectre_project.git
synced 2026-04-03 23:37:25 +00:00
comment
This commit is contained in:
@@ -53,6 +53,7 @@ int main(int argc, char* argv[]) {
|
||||
per_instruct_ticks = per_instruct_ticks - rc;
|
||||
printf("%u, %u, %lf, %lf\n", n_bytes, array_size, clocks_to_ns(per_instruct_ticks), clocks_to_ns(rc));
|
||||
int_to_dev_null(tmp);
|
||||
//free not necessary
|
||||
}
|
||||
double clocks_to_ns(double ct) {
|
||||
return ct / CLOCKS_PER_SEC * 1000000000.0;
|
||||
@@ -101,7 +102,7 @@ double clock_ticks_rand() {
|
||||
for(size_t i=0; i<N; ++i) {
|
||||
rand();
|
||||
}
|
||||
double time_per_rand = (double)(clock() - start) / N;
|
||||
return time_per_rand;
|
||||
double clock_ticks_per_rand = (double)(clock() - start) / N;
|
||||
return clock_ticks_per_rand;
|
||||
#undef N
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user