diff --git a/serial/t.c b/serial/t.c index f56318b..9d4c3a7 100644 --- a/serial/t.c +++ b/serial/t.c @@ -25,6 +25,7 @@ int count, foo; long temps; char ligne[200]; float datas[4]; +struct tm *p_tms; for (count=0; count %d\n", __func__, foo); } - if (verbosity > 1) fprintf(stderr, "\n"); + // + if (verbosity > 1) + { + p_tms = localtime(&temps); + (void)strftime(ligne, 19, "%H:%M:%S", p_tms); + fprintf(stderr, "\t%s\n", ligne); + } } return 0; }