Réduire
Brouillon
0
29/03/2013
0
Millisecondes C++
Mots-clés:
Microsoft Visual C++
#include <stdio.h>
#include <sys/timeb.h>
#include <time.h>
void main()
{
   struct _timeb timebuffer;
   char *timeline;
   for (int j=0; j< 100; j++ ) {
      _ftime( &timebuffer );
      timeline = ctime( & ( timebuffer.time ) );
      printf( "The time is %.19s.%hu %s", timeline, timebuffer.millitm, &timeline[20] );
   }
}