]> www.ginac.de Git - ginac.git/blob - check/times.h
d938d0b09eb53083394422be84bd1c10881eb87d
[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 <sstream>
29 #include <vector>
30 #include "config.h"
31 #include "ginac.h"
32 using namespace std;
33 using namespace GiNaC;
34
35 class timer {
36 public:
37         timer();
38         void start(void);
39         void stop(void);
40         void reset(void);
41         double read(void);
42         bool running(void);
43 private:
44         bool on;
45         struct rusage used1, used2;
46 };
47
48 // prototypes for all individual timings should be unsigned fcn():
49 unsigned time_dennyfliegner();
50 unsigned time_gammaseries();
51 unsigned time_vandermonde();
52 unsigned time_toeplitz();
53 unsigned time_lw_A();
54 unsigned time_lw_B();
55 unsigned time_lw_C();
56 unsigned time_lw_D();
57 unsigned time_lw_E();
58 unsigned time_lw_F();
59 unsigned time_lw_G();
60 unsigned time_lw_H();
61 unsigned time_lw_IJKL();
62 unsigned time_lw_M1();
63 unsigned time_lw_M2();
64 unsigned time_lw_N();
65 unsigned time_lw_O();
66 unsigned time_lw_P();
67 unsigned time_lw_Pprime();
68 unsigned time_lw_Q();
69 unsigned time_lw_Qprime();
70 unsigned time_antipode();
71
72 #endif // ndef CHECKS_H