readlog_time.h
00001 /* 00002 * Player - One Hell of a Robot Server 00003 * Copyright (C) 2000 00004 * Brian Gerkey, Kasper Stoy, Richard Vaughan, & Andrew Howard 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00022 // 00023 // Desc: Log file time 00024 // Author: Andrew Howard 00025 // Date: 28 May 2003 00026 // CVS: $Id: readlog_time.h 8108 2009-07-23 23:03:37Z thjc $ 00027 // 00029 00030 #ifndef READLOG_TIME_H 00031 #define READLOG_TIME_H 00032 00033 #include <libplayercore/playertime.h> 00034 00035 // Incremental navigation driver 00036 class ReadLogTime : public PlayerTime 00037 { 00038 // Constructor 00039 public: ReadLogTime(); 00040 00041 // Destructor 00042 public: virtual ~ReadLogTime(); 00043 00044 // Get the current time 00045 public: int GetTime(struct timeval* time); 00046 00047 // Get the current time 00048 public: int GetTimeDouble(double* time); 00049 }; 00050 00051 00052 // Some readlog related global vars 00053 extern struct timeval ReadLogTime_time; 00054 extern double ReadLogTime_timeDouble; 00055 00056 #endif