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]

Reply via email to