/[cln]/benchmarks/timebench2ap.cc
ViewVC logotype

Diff of /benchmarks/timebench2ap.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by kreckel, Fri Jan 28 11:37:45 2000 UTC revision 1.4 by kreckel, Wed Jun 23 21:11:21 2004 UTC
# Line 1  Line 1 
1  #include <cl_number.h>  #include <cln/number.h>
2  #include <cl_io.h>  #include <cln/io.h>
3  #include <cl_integer.h>  #include <cln/integer.h>
4  #include <stdlib.h>  #include <cstdlib>
5  #include <string.h>  #include <cstring>
6  #include <cl_timing.h>  #include <cln/timing.h>
7    
8    using namespace std;
9    using namespace cln;
10    
11  int main (int argc, char * argv[])  int main (int argc, char * argv[])
12  {  {
# Line 25  int main (int argc, char * argv[]) Line 28  int main (int argc, char * argv[])
28          if (argc < 1)          if (argc < 1)
29                  exit(1);                  exit(1);
30    
31          fprint(cl_stderr, "Limit: ");          cerr << "Limit: " << limit << endl;
32          fprintdecimal(cl_stderr, limit);          cerr << "Number of repetitions: " << repetitions << endl;
         fprint(cl_stderr, "\n");  
         fprint(cl_stderr, "Number of repetitions: ");  
         fprintdecimal(cl_stderr, repetitions);  
         fprint(cl_stderr, "\n");  
33    
34          { CL_TIMING;          { CL_TIMING;
35            for (int rep = repetitions; rep > 0; rep--)            for (int rep = repetitions; rep > 0; rep--)

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15