In my case, I need to start the counter on the host (PC) and in parallel to launch some process on a target (switch). On 7/6/07, Duncan Mac-Vicar Prett <dmacvicar@suse.de> wrote:
On Friday 06 July 2007 09:55:09 Cristea Bogdan wrote:
I need a simple program which counts the elapsed time starting from a given point. Could you give some suggestions?
for the shell, just use time:
time somecommand
will gve to you the time (user time and total time, that is total - syscalls) when the program finishes.
Something similar, for use in C++ code, look how Measure class is implemented:
http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/base/Measure.h http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/base/Measure.cc
You can see the docs in the header file itself.
Is that what you are looking for?
-- Duncan Mac-Vicar Prett Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Cristea Bogdan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org