github-actions[bot] commented on code in PR #34557:
URL: https://github.com/apache/doris/pull/34557#discussion_r1593996132


##########
be/src/util/stopwatch.hpp:
##########
@@ -75,6 +77,14 @@ class CustomStopWatch {
                (end.tv_nsec - _start.tv_nsec);
     }
 
+    // Returns time in nanosecond.
+    uint64_t elapsed_time_seconds(timespec end) const {

Review Comment:
   warning: unknown type name 'uint64_t' [clang-diagnostic-error]
   ```cpp
       uint64_t elapsed_time_seconds(timespec end) const {
       ^
   ```
   



##########
be/src/util/stopwatch.hpp:
##########
@@ -75,6 +77,14 @@
                (end.tv_nsec - _start.tv_nsec);
     }
 
+    // Returns time in nanosecond.
+    uint64_t elapsed_time_seconds(timespec end) const {
+        if (!_running) {
+            return _total_time / 1000L / 1000L / 1000L;
+        }
+        return end.tv_sec - _start.tv_sec;
+    }
+
 private:
     timespec _start;
     uint64_t _total_time; // in nanosec

Review Comment:
   warning: unknown type name 'uint64_t' [clang-diagnostic-error]
   ```cpp
       uint64_t _total_time; // in nanosec
       ^
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to