Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
evaluation
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
20
#include <
protocols/evaluation/TimeEvaluator.hh
>
21
22
// Package Headers
23
#include <
protocols/evaluation/PoseEvaluator.hh
>
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
45
TimeEvaluator::TimeEvaluator
(
std::string
const
& tag )
46
: evaluation::
SingleValuePoseEvaluator
< core::
Real
> (
"time"
+tag)
47
{
48
reset
();
49
}
50
51
void
52
TimeEvaluator::reset
() {
53
start_time_
= time(NULL);
54
}
55
56
57
core::Real
58
TimeEvaluator::apply
(
core::pose::Pose
& )
const
59
{
60
return
time(NULL) -
start_time_
;
61
}
62
63
}
64
}
Generated on Sat Jun 1 2013 11:48:54 for Rosetta 3.5 by
1.8.4