SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GUITime.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2008 Soeren Sonnenburg
8  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef __GUITIME__H_
12 #define __GUITIME__H_
13 
14 #include <shogun/lib/config.h>
15 #include <shogun/lib/Time.h>
16 #include <shogun/base/SGObject.h>
17 
18 namespace shogun
19 {
20 class CSGInterface;
21 
23 class CGUITime : public CSGObject
24 {
25  public:
27  CGUITime() { };
31  CGUITime(CSGInterface* interface);
33  ~CGUITime();
34 
36  void start();
38  void stop();
39 
41  virtual const char* get_name() const { return "GUITime"; }
42  protected:
44  CSGInterface* ui;
47 };
48 }
49 #endif
Class Time that implements a stopwatch based on either cpu time or wall clock time.
Definition: Time.h:47
CSGInterface * interface
Definition: SGInterface.cpp:45
CSGInterface * ui
Definition: GUITime.h:44
UI time.
Definition: GUITime.h:23
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual const char * get_name() const
Definition: GUITime.h:41
CTime * time
Definition: GUITime.h:46

SHOGUN Machine Learning Toolbox - Documentation