Update.

Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/a1131351
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/a1131351
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/a1131351

Branch: refs/heads/master
Commit: a1131351423e20680fca11641ca3e45f801e9e14
Parents: c1be6d0
Author: Dave George <[email protected]>
Authored: Thu Apr 12 20:58:37 2018 +0000
Committer: Dave George <[email protected]>
Committed: Thu Apr 12 20:58:37 2018 +0000

----------------------------------------------------------------------
 core/sqf/src/seabed/test/t286ms.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/a1131351/core/sqf/src/seabed/test/t286ms.cpp
----------------------------------------------------------------------
diff --git a/core/sqf/src/seabed/test/t286ms.cpp 
b/core/sqf/src/seabed/test/t286ms.cpp
index 69c19fc..02262a8 100644
--- a/core/sqf/src/seabed/test/t286ms.cpp
+++ b/core/sqf/src/seabed/test/t286ms.cpp
@@ -329,6 +329,8 @@ int main(int argc, char *argv[]) {
                 t_elapsed_us = (int) (t_elapsed.tv_sec * 1000000 + 
t_elapsed.tv_usec);
                 if (t_elapsed_us < rate_us * rate_cnt) {
                     rate_usleep = rate_us * rate_cnt - t_elapsed_us;
+                    if (ratev)
+                        printf("%s-sleeping=%d\n", my_name, rate_usleep);
                     usleep(rate_usleep);
                 }
                 rate_cnt++;
@@ -336,7 +338,7 @@ int main(int argc, char *argv[]) {
                     gettimeofday(&t_start, NULL);
                     rate_cnt = 0;
                     if (ratev)
-                        printf("%s-loop=%d\n", my_name, inx);
+                        printf("%s-loop=%d, elapsed=%d us\n", my_name, inx, 
t_elapsed_us);
                 }
             }
         }

Reply via email to