chronos.h

00001 
00002 /*----------------------------------------------------------------------------
00003  *                                  E.S.O.
00004  *----------------------------------------------------------------------------
00005  * File name    :   chronos.h
00006  * Author       :   Nicolas Devillard
00007  * Created on   :   FEB 17, 1998
00008  * Hardware     :   Sun UltraSparc
00009  * Software     :   ANSI C under Solaris Unix
00010  *                  Part of ECLIPSE library for Adonis
00011  * Description  :   Timing related routines 
00012  *--------------------------------------------------------------------------*/
00013 
00014 /*
00015 
00016  $Id: chronos.h,v 1.1 2003/09/03 12:50:47 amodigli Exp $
00017  $Author: amodigli $
00018  $Date: 2003/09/03 12:50:47 $
00019  $Revision: 1.1 $
00020 
00021  */
00022 
00023 #ifndef _CHRONOS_H_
00024 #define _CHRONOS_H_
00025 
00026 /*----------------------------------------------------------------------------
00027  *                              Includes
00028  *--------------------------------------------------------------------------*/
00029 
00030 #include <stdio.h>
00031 #include <stdlib.h>
00032 #include <string.h>
00033 #include <sys/time.h>
00034 #include <sys/resource.h>
00035 #include <sys/types.h>
00036 #include <time.h>
00037 
00038 
00039 /*----------------------------------------------------------------------------
00040  *                              Defines
00041  *--------------------------------------------------------------------------*/
00042 
00043 #define START_CLOCK         0
00044 #define STOP_CLOCK          1
00045 #define ACC_CLOCK           2   
00046 
00047 
00048 /*----------------------------------------------------------------------------
00049  *                      Function prototypes
00050  *--------------------------------------------------------------------------*/
00051 
00052 
00053 /*----------------------------------------------------------------------------
00054  * Function :   eclipse_cpu_timing()
00055  * In       :   mode: START_CLOCK, STOP_CLOCK, or ACC_CLOCK
00056  *              Optional: number of pixels which have been processed
00057  *              during this time. If not known, give -1.
00058  * Out      :   0.0 for START and STOP, accumulated time since first
00059  *              start (in seconds) for ACC_CLOCK.
00060  * Job      :   timer handling for benchmarks
00061  * Notice   :
00062  *              Start the timer by calling
00063  *              eclipse_cpu_timing(START_CLOCK)
00064  *              Stop the timer by calling
00065  *              eclipse_cpu_timing(STOP_CLOCK)
00066  *              Print out the accumulated total elapsed time by
00067  *              calling eclipse_cpu_timing(ACC_CLOCK)
00068  *--------------------------------------------------------------------------*/
00069 
00070 double eclipse_cpu_timing(int mode, int npix) ;
00071 
00072 
00073 #endif
00074 /*------------------------------- end of file ------------------------------*/
00075 

Generated on Wed Oct 26 13:08:51 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001