/* * * Program : zzztest.cpp * Task : ... * Compil/Exec : NTR * Author : Mathieu Trocmé (mathieu.trocme@cea.fr) * Date : 2011/06/26 * Framework : CEA/DRT/LIST/DCSI/LCAE, Gif-sur-Yvette, France * */ #include #include #include #include ///// void zzztest () { TString filename="test3.dat", format="%lg %lg" ; TStopwatch *timer=NULL ; printf ("\ng5__: ") ; timer = new TStopwatch() ; timer->Start() ; TGraph * g5__ = new TGraph (filename.Data(),format.Data()," \t;" ) ; printf ("Time elapsed = %.3f s", timer->RealTime()) ; delete timer ; timer = NULL ; printf ("\ng7__: ") ; timer = new TStopwatch() ; timer->Start() ; TGraph * g7__ = new TGraph (filename.Data(),format.Data()," \t;", 50) ; printf ("Time elapsed = %.3f s", timer->RealTime()) ; delete timer ; timer = NULL ; printf ("\n\n") ; return ; } /// test3.dat /* void ztest ( Int_t npoints=1000000, TString foutname="test3.dat" ) { FILE * fout = fopen (foutname.Data(),"w") ; if ( fout == NULL ) { fprintf (stderr,"\n\n!!! ERROR in : \"%s\" cannot be created!\n\n",foutname.Data()) ; getchar() ; exit(1) ; } fprintf (fout,"Some rubbish\n") ; fprintf (fout,"2 check it works\n") ; for (Int_t i=0; iUniform()>0.5)?+1.:-1.)*gRandom->Uniform()*10.) ; } fclose(fout) ; fout=NULL ; return ; } */