#include "tbb/task_scheduler_init.h"
#include "tbb/tick_count.h"
#include <iostream>
#include <unistd.h>
Go to the source code of this file.
Definition at line 11 of file tbb_init_t.cc.
13 int n = tbb::task_scheduler_init::default_num_threads();
14 for (
int p = 1; p <=
n; ++p) {
16 tbb::task_scheduler_init init(p);
21 double t = (
t1 -
t0).seconds();
22 std::cout <<
"time = " << t <<
" with " << p <<
" threads." << std::endl;
code to link reconstructed objects back to the MC truth information