Article

From:
To:
All
Subject:
Time Measurement
Newsgroup:
embarcadero.public.cppbuilder.language.cpp

Time Measurement

I am trying to measure the time elapsed.

This code gives me the time in seconds.
{code}time_t starttime; time_t totaltime; uint16_t seconds;

   starttime = time(NULL);
   totaltime = time(NULL);    seconds = totaltime - starttime;{code}
I need the time in milliseconds. The function time(NULL); returns full seconds.

In Delphi, totaltime = time; , did not return full seconds. Is there are C++ version of Delphi time.

Ray.
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 28 Mar 2024 20:50:09 UTC
Copyright © 2009-2024
HREF Tools Corp.