Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
d4b42b0e
Commit
d4b42b0e
authored
4 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
rename class bfps_timer to turtle_timer
parent
47079a5b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cpp/bfps_timer.hpp
+10
-10
10 additions, 10 deletions
cpp/bfps_timer.hpp
cpp/scope_timer.cpp
+1
-1
1 addition, 1 deletion
cpp/scope_timer.cpp
cpp/scope_timer.hpp
+2
-2
2 additions, 2 deletions
cpp/scope_timer.hpp
with
13 additions
and
13 deletions
cpp/bfps_timer.hpp
+
10
−
10
View file @
d4b42b0e
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
* Contact: Cristian.Lalescu@ds.mpg.de *
* Contact: Cristian.Lalescu@ds.mpg.de *
* *
* *
**********************************************************************/
**********************************************************************/
#ifndef
BFPS
_TIMER_HPP
#ifndef
TURTLE
_TIMER_HPP
#define
BFPS
_TIMER_HPP
#define
TURTLE
_TIMER_HPP
#include
<chrono>
#include
<chrono>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* The measured time is given by "getElapsed".
* The measured time is given by "getElapsed".
* The total time measured by a timer is given by "getCumulated".
* The total time measured by a timer is given by "getCumulated".
* Example :
* Example :
* @code
bfps
_timer tm; // Implicit start
* @code
turtle
_timer tm; // Implicit start
* @code ...
* @code ...
* @code tm.stop(); // stop the timer
* @code tm.stop(); // stop the timer
* @code tm.getElapsed(); // return the duration in s [A]
* @code tm.getElapsed(); // return the duration in s [A]
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
* [B]
* [B]
* @code tm.getCumulated(); // Equal [A] + [B]
* @code tm.getCumulated(); // Equal [A] + [B]
*/
*/
class
bfps
_timer
{
class
turtle
_timer
{
using
double_second_time
=
std
::
chrono
::
duration
<
double
,
std
::
ratio
<
1
,
1
>>
;
using
double_second_time
=
std
::
chrono
::
duration
<
double
,
std
::
ratio
<
1
,
1
>>
;
std
::
chrono
::
high_resolution_clock
::
time_point
std
::
chrono
::
high_resolution_clock
::
time_point
...
@@ -53,16 +53,16 @@ class bfps_timer {
...
@@ -53,16 +53,16 @@ class bfps_timer {
public:
public:
/// Constructor
/// Constructor
bfps
_timer
()
:
m_cumulate
(
std
::
chrono
::
nanoseconds
::
zero
())
{
start
();
}
turtle
_timer
()
:
m_cumulate
(
std
::
chrono
::
nanoseconds
::
zero
())
{
start
();
}
/// Copy constructor
/// Copy constructor
bfps
_timer
(
const
bfps
_timer
&
other
)
=
delete
;
turtle
_timer
(
const
turtle
_timer
&
other
)
=
delete
;
/// Copies an other timer
/// Copies an other timer
bfps
_timer
&
operator
=
(
const
bfps
_timer
&
other
)
=
delete
;
turtle
_timer
&
operator
=
(
const
turtle
_timer
&
other
)
=
delete
;
/// Move constructor
/// Move constructor
bfps
_timer
(
bfps
_timer
&&
other
)
=
delete
;
turtle
_timer
(
turtle
_timer
&&
other
)
=
delete
;
/// Copies an other timer
/// Copies an other timer
bfps
_timer
&
operator
=
(
bfps
_timer
&&
other
)
=
delete
;
turtle
_timer
&
operator
=
(
turtle
_timer
&&
other
)
=
delete
;
/** Rest all the values, and apply start */
/** Rest all the values, and apply start */
void
reset
()
{
void
reset
()
{
...
@@ -101,4 +101,4 @@ public:
...
@@ -101,4 +101,4 @@ public:
}
}
};
};
#endif
#endif
//TURTLE_TIMER_HPP
This diff is collapsed.
Click to expand it.
cpp/scope_timer.cpp
+
1
−
1
View file @
d4b42b0e
...
@@ -4,5 +4,5 @@
...
@@ -4,5 +4,5 @@
#ifdef USE_TIMINGOUTPUT
#ifdef USE_TIMINGOUTPUT
EventManager
global_timer_manager
(
"
BFPS
"
,
std
::
cout
);
EventManager
global_timer_manager
(
"
TurTLE
"
,
std
::
cout
);
#endif
#endif
This diff is collapsed.
Click to expand it.
cpp/scope_timer.hpp
+
2
−
2
View file @
d4b42b0e
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#include
<fstream>
#include
<fstream>
#include
"base.hpp"
#include
"base.hpp"
#include
"
bfps
_timer.hpp"
#include
"
turtle
_timer.hpp"
//< To add it as friend of EventManager
//< To add it as friend of EventManager
class
ScopeEvent
;
class
ScopeEvent
;
...
@@ -737,7 +737,7 @@ protected:
...
@@ -737,7 +737,7 @@ protected:
//< The core event
//< The core event
EventManager
::
CoreEvent
*
m_event
;
EventManager
::
CoreEvent
*
m_event
;
//< Time to get elapsed time
//< Time to get elapsed time
bfps
_timer
m_timer
;
turtle
_timer
m_timer
;
//< Is true if it has been created for task
//< Is true if it has been created for task
bool
m_isTask
;
bool
m_isTask
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment