![](https://seccdn.libravatar.org/avatar/150bb68600b6f4527c14c79e81e90f53.jpg?s=120&d=mm&r=g)
On Fri, 2007-07-06 at 20:21 +0300, Cristea Bogdan wrote:
In my case, I need to start the counter on the host (PC) and in parallel to launch some process on a target (switch).
time ssh switch some-process perhaps? Cheers, Dave
On 7/6/07, Duncan Mac-Vicar Prett
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