Skip to content

Commit 4d81470

Browse files
authored
Drop setTimestamp method (#94)
1 parent a409eda commit 4d81470

File tree

4 files changed

+0
-37
lines changed

4 files changed

+0
-37
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ target_compile_features(Monitoring PUBLIC cxx_std_17)
140140
set(EXAMPLES
141141
examples/1-Basic.cxx
142142
examples/2-TaggedMetrics.cxx
143-
examples/3-UserDefinedTimestamp
144143
examples/4-RateDerivedMetric.cxx
145144
examples/5-Benchmark.cxx
146145
examples/6-Increment.cxx

examples/3-UserDefinedTimestamp.cxx

Lines changed: 0 additions & 25 deletions
This file was deleted.

include/Monitoring/Metric.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ class Metric
8787
/// \return vector of tags
8888
std::vector<Tag> getTags() const;
8989

90-
/// Sets user defined timestamp
91-
/// \param timestamp timestamp to set
92-
/// \return r-value to "this" - to be able to chain methods
93-
Metric&& setTimestamp(std::chrono::time_point<std::chrono::system_clock>& timestamp);
94-
9590
/// Add user defined tags
9691
/// \param tags r-value to vector of tags
9792
/// \return r-value to "this" - to be able to chain methods

src/Metric.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ Metric&& Metric::addTags(std::vector<Tag>&& tags)
9090
return std::move(*this);
9191
}
9292

93-
Metric&& Metric::setTimestamp(std::chrono::time_point<std::chrono::system_clock>& timestamp)
94-
{
95-
mTimestamp = timestamp;
96-
return std::move(*this);
97-
}
98-
9993
std::vector<Tag> Metric::getTags() const
10094
{
10195
return tagSet;

0 commit comments

Comments
 (0)