00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2008 Soeren Sonnenburg 00008 * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef __GUITIME__H_ 00012 #define __GUITIME__H_ 00013 00014 #include <shogun/lib/config.h> 00015 #include <shogun/lib/Time.h> 00016 #include <shogun/base/SGObject.h> 00017 00018 namespace shogun 00019 { 00020 class CSGInterface; 00021 00023 class CGUITime : public CSGObject 00024 { 00025 public: 00027 CGUITime() { }; 00031 CGUITime(CSGInterface* interface); 00033 ~CGUITime(); 00034 00036 void start(); 00038 void stop(); 00039 00041 virtual const char* get_name() const { return "GUITime"; } 00042 protected: 00044 CSGInterface* ui; 00046 CTime* time; 00047 }; 00048 } 00049 #endif