03-26-07 01:20 PM
Leigh Sharpe wrote:
> Hi all,
> Is there any way of getting the system time, right down to the microsecon
d,
> or even millisecond?
>
> I need to do something a little like this:
>
> int start_time=getTheTimeSomehow(); // Get the current time
> doSomethingElse(); // Go and do something
> else.
> int end_time=getTheTimeSomehow() // What's the time now?
> int elapsed_time=end_time-start_time; // How long did it take?
>
> And I need to know the time as accurately as possible.
>
>
> I would expect there to be a function somewhere, but I just don't know
> where.
>
>
>
gettimeofday()?
[ Post a follow-up to this message ]
|