#include <stdio.h>
#include <stdlib.h>
#include <time.h> // Pas necessaire ?
/*
* */
int main(int argc, char** argv) {
struct timeval tv;
printf( "Test 1 : %d\n" , 15 );
gettimeofday(&tv, NULL);
printf("Ce que je voudrais : %010ld%06ld\n", tv.tv_sec, tv.tv_usec);
printf("Ce que j'ai : %lld\n", (tv.tv_sec*1000000) + tv.tv_usec);
unsigned long long test = (tv.tv_sec*1000000) + tv.tv_usec ;
printf("?? : %lld \n", test );
return (EXIT_SUCCESS);
}
|