mardi 14 juin 2016

Temps d'execution WinApi

Une troisième méthode pour le calcule du temps d'execution :

static void DJO_winApi(Args _args)
{

     int64 startTime, endTime;
     int64 time;
     ;

     startTime = WinAPI::getTickCount64();
     sleep(5000);
     endTime = WinAPI::getTickCount64();

     time = endTime - startTime;

     info(strFmt("le temps total consommé est %1 milliseconde", time));

}





vous pouvez consulter les deux autre solution timeNow() et stopWatch()

Aucun commentaire:

Enregistrer un commentaire