00001 // This file is part of BOINC. 00002 // http://boinc.berkeley.edu 00003 // Copyright (C) 2008 University of California 00004 // 00005 // BOINC is free software; you can redistribute it and/or modify it 00006 // under the terms of the GNU Lesser General Public License 00007 // as published by the Free Software Foundation, 00008 // either version 3 of the License, or (at your option) any later version. 00009 // 00010 // BOINC is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 // See the GNU Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 00017 00018 #define MAX_CPU_BENCHMARKS_SECONDS 300 00019 #define CPU_BENCHMARKS_RUNNING 0 00020 #define CPU_BENCHMARKS_COMPLETE 1 00021 #define CPU_BENCHMARKS_NOT_RUNNING 2 00022 #define CPU_BENCHMARKS_ERROR 3 00023 00024 #define BM_TYPE_FP 0 00025 #define BM_TYPE_INT 1 00026 00027 extern int dhrystone(double& vax_mips, double& loops, double& cpu_time, double min_cpu_time); 00028 extern int whetstone(double& flops, double& cpu_time, double min_cpu_time); 00029 extern void benchmark_wait_to_start(int which); 00030 extern bool benchmark_time_to_stop(int which);
1.5.6