GUITime.cpp

Go to the documentation of this file.
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 #include <shogun/ui/SGInterface.h>
00012 #include <shogun/ui/GUITime.h>
00013 
00014 using namespace shogun;
00015 
00016 CGUITime::CGUITime(CSGInterface* ui_)
00017 : CSGObject(), ui(ui_)
00018 {
00019     time=new CTime();
00020 }
00021 
00022 CGUITime::~CGUITime()
00023 {
00024     SG_UNREF(time);
00025 }
00026 
00027 void CGUITime::start()
00028 {
00029     time->start();
00030 }
00031 
00032 void CGUITime::stop()
00033 {
00034     time->stop();
00035     time->time_diff_sec(true);
00036 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation