Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
322808be
Commit
322808be
authored
Dec 29, 2012
by
KIU Shueng Chuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminate code moved into zmq_utils.cpp
parent
942c654d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
zmq.cpp
src/zmq.cpp
+0
-29
No files found.
src/zmq.cpp
View file @
322808be
...
...
@@ -1027,32 +1027,3 @@ void zmq_free_event (void *event_data, void *hint)
}
free
(
event_data
);
}
////////////////////////////////////////////////////////////////////////////////
// 0MQ utils - to be used by perf tests
////////////////////////////////////////////////////////////////////////////////
void
zmq_sleep
(
int
seconds_
)
{
#if defined ZMQ_HAVE_WINDOWS
Sleep
(
seconds_
*
1000
);
#else
sleep
(
seconds_
);
#endif
}
void
*
zmq_stopwatch_start
()
{
uint64_t
*
watch
=
(
uint64_t
*
)
malloc
(
sizeof
(
uint64_t
));
alloc_assert
(
watch
);
*
watch
=
zmq
::
clock_t
::
now_us
();
return
(
void
*
)
watch
;
}
unsigned
long
zmq_stopwatch_stop
(
void
*
watch_
)
{
uint64_t
end
=
zmq
::
clock_t
::
now_us
();
uint64_t
start
=
*
(
uint64_t
*
)
watch_
;
free
(
watch_
);
return
(
unsigned
long
)
(
end
-
start
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment