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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Cristea Bogdan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to