00001 /* $Id: xsh_model_cputime.h,v 1.3 2008/05/23 09:05:30 amodigli Exp $ 00002 * 00003 * This file is part of the ESO X-shooter Pipeline 00004 * Copyright (C) 2006 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 /* cputime.h declarations for CPU timing call */ 00021 /* rcsid: %W% %U% %G% EFC */ 00022 /* if this is used while in SYSV you need to add -lbsd to the link step */ 00023 00024 #ifndef XSH_MODEL_CPUTIME_H 00025 #define XSH_MODEL_CPUTIME_H 00026 00027 #include <stdio.h> 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 #ifdef NO_PROTO 00034 void xsh_report_cpu(); 00035 void get_cpu_time(); 00036 #else 00037 void xsh_report_cpu(FILE *, char *); 00038 void get_cpu_time(double *usertime, double *systime); 00039 #endif 00040 00041 #ifdef __cplusplus 00042 } 00043 #endif 00044 00045 00046 #endif