title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Elapsed Time: Automation Classes | Microsoft Docs |
11/04/2016 |
|
reference |
|
|
26b34b37-c10e-4b91-82c3-1dc5ffb5361f |
10 |
mikeblome |
mblome |
ghogen |
This procedure shows how to calculate the difference between two CTime
objects and get a CTimeSpan
result.
-
Create two
COleDateTime
objects. -
Set one of the
COleDateTime
objects to the current time. -
Perform some time-consuming task.
-
Set the other
COleDateTime
object to the current time. -
Take the difference between the two times.
[!code-cppNVC_ATLMFC_Utilities#178]