Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-02-02 16:00:26


From: Greg Colvin <gcolvin_at_[hidden]>
> From: Miki Jovanovic <miki_at_[hidden]>
> > "greg colvin" <gcolvi-_at_[hidden]> wrote:
> > > long start = System.currentTimeMillis();
> >
> > vs.
> >
> > > clock_t start = clock();
> >
> > MSDN says:
> >
> > "clock() returns the number of clock ticks of elapsed processor time."
> >
> > vs.
> >
> > currentTimeMillis() returns the difference, measured in milliseconds,
> > between the current time and midnight, January 1, 1970 UTC.
> >
> > Would this processor time vs real time make much of a difference here?
>
> No, I print the elapsed time in milliseconds:
>
> printf("fill vector: %ld\n",
> ((long)clock() - start)*1000/CLOCKS_PER_SEC

Never mind -- I see what you mean. I doubt it matters on my
system, but I'll recode my C++ test to use real time. Thanks.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk