Solved

Format Ctime to display current time (+ milliseconds)

Posted on 2000-03-26
1
3,800 Views
Last Modified: 2013-11-20
hi guys,

I am trying to display the current time using CTime in
"hh:mm:ss:HH:MM:SS:mmm" where mmm is milliseconds..
I can get all the formating except for the milliseconds.... it is not documented... how can I retrieve that as well?

Thnaks
0
Comment
Question by:Haho
1 Comment
 
LVL 1

Accepted Solution

by:
mahno earned 50 total points
ID: 2659887
Hi Haho,

It is impossible to get milliseconds using CTime.
To get milliseconds U can use GetSystemTime() function

Hope that helps.
  mahno
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now