X-shooter Pipeline Reference Manual 3.8.15
xsh_model_cputime.h
Go to the documentation of this file.
1/* $Id: xsh_model_cputime.h,v 1.3 2008-05-23 09:05:30 amodigli Exp $
2 *
3 * This file is part of the ESO X-shooter Pipeline
4 * Copyright (C) 2006 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* cputime.h declarations for CPU timing call */
21/* rcsid: %W% %U% %G% EFC */
22/* if this is used while in SYSV you need to add -lbsd to the link step */
23
24#ifndef XSH_MODEL_CPUTIME_H
25#define XSH_MODEL_CPUTIME_H
26
27#include <stdio.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#ifdef NO_PROTO
34void xsh_report_cpu();
35void get_cpu_time();
36#else
37void xsh_report_cpu(FILE *, char *);
38void get_cpu_time(double *usertime, double *systime);
39#endif
40
41#ifdef __cplusplus
42}
43#endif
44
45
46#endif
void get_cpu_time(double *usertime, double *systime)
void xsh_report_cpu(FILE *, char *)