more verbose display (timestamp)

This commit is contained in:
tth 2019-02-22 16:02:01 +01:00
parent c381b61b60
commit 2024a1b342
1 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,7 @@ int count, foo;
long temps;
char ligne[200];
float datas[4];
struct tm *p_tms;
for (count=0; count<iters; count++) {
foo = getline_to(sfd, ligne, 100, 0);
@ -46,7 +47,13 @@ for (count=0; count<iters; count++) {
else {
fprintf(stderr, "%s: parse -> %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;
}