RE: Get Milliseconds from COleDataTimeSpan
- From: PePaKa <p.kaluscha@xxxxxxxxxxx(donotspam)>
- Date: Fri, 8 Jul 2005 04:59:02 -0700
Hi
try 'GetTickCount()' to measure time in msec
Example:
DWORD t1 = GetTickCount();
...
... your code
...
DWORD t2 = GetTickCount();
DWORD dt = t2 - t1; // dt is in msec
"Thomas Schindler" wrote:
> Hello,
>
> I want to retrieve the Milliseconds from COleDataTimeSpan.
> Is this the correct way?
>
> SYSTEMTIME st; ::GetSystemTime(&st);
> COleDataTime t1(st);
> ...
> GetSystemTime(&st);
> COleDateTime t2(st);
> COleDateTimeSpan ts = t2- t1;
> double MilliSecSpan = ts.m_span - ts.GetTotalSeconds();
>
> Thanks, T.
>
.
- References:
- Get Milliseconds from COleDataTimeSpan
- From: Thomas Schindler
- Get Milliseconds from COleDataTimeSpan
- Prev by Date: Re: ASSERT problem in CWnd::DestroyWindow within a DLL
- Next by Date: Re: Howto sync multiple processes with CDaoRecordset ?
- Previous by thread: Get Milliseconds from COleDataTimeSpan
- Next by thread: Multithreading: Safe to have two readers on data without locks?
- Index(es):
Relevant Pages
|