* New funny timing added: compute an antipode in Yukawa theory.
[ginac.git] / check / times.h
1 /** @file times.h
2  *
3  *  Prototypes for all individual timings. */
4
5 /*
6  *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef CHECKS_H
24 #define CHECKS_H
25
26 #include <sys/resource.h>
27 #include <stdlib.h>
28 #include "config.h"
29 #if defined(HAVE_SSTREAM)
30 #  include <sstream>
31 #else
32 #  include <strstream>
33 #endif
34 #include <vector>
35 using namespace std;
36
37 #include "ginac.h"
38 using namespace GiNaC;
39
40 class timer {
41 public:
42         timer();
43         void start(void);
44         void stop(void);
45         void reset(void);
46         double read(void);
47         bool running(void);
48 private:
49         bool on;
50         struct rusage used1, used2;
51 };
52
53 // prototypes for all individual timings should be unsigned fcn():
54 unsigned time_dennyfliegner();
55 unsigned time_gammaseries();
56 unsigned time_vandermonde();
57 unsigned time_toeplitz();
58 unsigned time_lw_A();
59 unsigned time_lw_B();
60 unsigned time_lw_C();
61 unsigned time_lw_D();
62 unsigned time_lw_E();
63 unsigned time_lw_F();
64 unsigned time_lw_G();
65 unsigned time_lw_H();
66 unsigned time_lw_IJKL();
67 unsigned time_lw_M1();
68 unsigned time_lw_M2();
69 unsigned time_lw_N();
70 unsigned time_lw_O();
71 unsigned time_lw_P();
72 unsigned time_lw_Pprime();
73 unsigned time_lw_Q();
74 unsigned time_lw_Qprime();
75 unsigned time_antipode();
76
77 #endif // ndef CHECKS_H