2
$Id: Timer.h 15863 2013-04-02 10:59:38Z sloot $
3
$URL: https://ilk.uvt.nl/svn/sources/libticcutils/trunk/include/ticcutils/Timer.h $
5
Copyright (c) 1998 - 2013
6
ILK - Tilburg University
7
CLiPS - University of Antwerp
9
This file is part of ticcutils
11
ticcutils is free software; you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation; either version 3 of the License, or
14
(at your option) any later version.
16
ticcutils is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, see <http://www.gnu.org/licenses/>.
24
For questions and suggestions, see:
25
http://ilk.uvt.nl/software.html
38
friend std::ostream& operator << ( std::ostream& os, const Timer& T );
40
void reset(){ myTime.tv_sec=0; myTime.tv_usec=0; };
42
gettimeofday( &startTime, 0 );
45
unsigned int secs() { stop(); return myTime.tv_sec; };
46
std::string toString();
47
static std::string now();
55
#endif // TICC_TIMER_H