Commit dc25ea6 Sergii Baitala
authored
1 parent fa107a8 commit dc25ea6 Copy full SHA for dc25ea6
File tree 1 file changed +4
-4
lines changed
api/include/opentelemetry/trace
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ class Tracer
170
170
template <class Rep , class Period >
171
171
void ForceFlush (std::chrono::duration<Rep, Period> timeout) noexcept
172
172
{
173
- this ->ForceFlushWithMicroseconds (
174
- static_cast < uint64_t >( std::chrono::duration_cast<std::chrono::microseconds>(timeout)));
173
+ this ->ForceFlushWithMicroseconds (static_cast < uint64_t >(
174
+ std::chrono::duration_cast<std::chrono::microseconds>(timeout). count ( )));
175
175
}
176
176
177
177
virtual void ForceFlushWithMicroseconds (uint64_t timeout) noexcept = 0;
@@ -183,8 +183,8 @@ class Tracer
183
183
template <class Rep , class Period >
184
184
void Close (std::chrono::duration<Rep, Period> timeout) noexcept
185
185
{
186
- this ->CloseWithMicroseconds (
187
- static_cast < uint64_t >( std::chrono::duration_cast<std::chrono::microseconds>(timeout)));
186
+ this ->CloseWithMicroseconds (static_cast < uint64_t >(
187
+ std::chrono::duration_cast<std::chrono::microseconds>(timeout). count ( )));
188
188
}
189
189
190
190
virtual void CloseWithMicroseconds (uint64_t timeout) noexcept = 0;
You can’t perform that action at this time.
0 commit comments