1 /******************************************************************************* 2 This file is part of libTMCG. 3 4 Copyright (C) 2005, 2017 Heiko Stamer <HeikoStamer@gmx.net> 5 6 libTMCG 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 libTMCG 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 libTMCG; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 *******************************************************************************/ 20 #ifndef INCLUDED_test_helper_H 21 #define INCLUDED_test_helper_H 22 23 #include <stdio.h> 24 #include <time.h> 25 26 #if defined (__cplusplus) 27 extern "C" 28 { 29 #endif 30 31 void start_clock 32 (); 33 void stop_clock 34 (); 35 void save_clock 36 (); 37 char *elapsed_time 38 (); 39 char *current_time 40 (); 41 int compare_time 42 (clock_t diff); 43 int compare_elapsed_time 44 (clock_t diff); 45 int compare_elapsed_time_saved 46 (clock_t diff); 47 48 #if defined(__cplusplus) 49 } 50 #endif 51 52 #endif 53