i.e... In this case.. can I restrict the template arguments to function pointers/objects ?
Code:template<typename F1,typename F2>
void compare(F1 fp1,F2 fp2)
{
double t1,t2;
clock_t ini = clock();
fp1();
clock_t fin = clock();
t1 = double((fin - ini))/CLOCKS_PER_SEC;
ini = clock();
fp2();
fin = clock();
t2 = double((fin - ini))/CLOCKS_PER_SEC;
std::cout<<"First one took: "<<t1<<" seconds\n";
std::cout<<"Second one took: "<<t2<<" seconds\n";
}