Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TimeEvaluator.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file relax_initialization_protocols
11 /// @brief initialization protocols for relax
12 /// @detailed
13 /// Contains currently: Classic Abinitio
14 ///
15 ///
16 /// @author Oliver Lange
17 
18 
19 // Unit Headers
21 
22 // Package Headers
24 
25 // Project Headers
26 #include <core/pose/Pose.fwd.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 // ObjexxFCL Headers
32 
33 // Utility headers
34 
35 //// C++ headers
36 
37 #if defined(WIN32) || defined(__CYGWIN__)
38  #include <ctime>
39 #endif
40 
41 namespace protocols {
42 namespace evaluation {
43 
44 
46  : evaluation::SingleValuePoseEvaluator< core::Real > ("time"+tag)
47 {
48  reset();
49 }
50 
51 void
53  start_time_ = time(NULL);
54 }
55 
56 
59 {
60  return time(NULL) - start_time_;
61 }
62 
63 }
64 }