samedi 28 avril 2018

Getting current time in milliseconds in c++ [duplicate]

This question already has an answer here:

I am new to c++, using Microsoft visual studio 2017, and I want to know how to get the current time in hours, minutes, seconds and milliseconds, without colons. For instance, if the time is

18:25:45.3456776543

I want to set a variable to

182545.3456776543

with a function like

double currentTime = getCurrentTimeNoColons()

Is this possible?

Thanks 😃

Aucun commentaire:

Enregistrer un commentaire