modified: nfig1.py
[GalaxyCodeBases.git] / BGI / BASE / src / 2bwt / Timing.h
blob067e1df1a6661de188e95303850bd2f658bb320a
1 /*
3 Timing.h Measuring Program running time
5 This module contains functions for measuring program running time.
7 Copyright (C) 2004, Wong Chi Kwong.
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #ifndef __TIMING_H__
26 #define __TIMING_H__
29 double setStartTime();
30 double getElapsedTime(double startTime);
31 void printElapsedTime(FILE *file, const int printHour, const int printMin, const int printSec,
32 const int secNumberOfDecimal, const double seconds);
33 void printElapsedTimeNoNewLine(FILE *file, const int printHour, const int printMin, const int printSec,
34 const int secMinPrintLength, const int secNumberOfDecimal, const double seconds);
36 #endif