<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Many thanks.<br>
<br>
On 28.06.2015 13:23, Petter Reinholdtsen wrote:<br>
<blockquote cite="mid:2fl381c6pqi.fsf@diskless.uio.no" type="cite">
<pre wrap="">Based on the information available from
<URL: <a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/1083142/what-s-the-correct-way-to-use-printf-to-print-a-clock-t">http://stackoverflow.com/questions/1083142/what-s-the-correct-way-to-use-printf-to-print-a-clock-t</a> >,
refering to
<URL: <a class="moz-txt-link-freetext" href="http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html">http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html</a> >
where it is stated that "clock_t shall be integer or real-floating
types",
</pre>
</blockquote>
<br>
Because "rel-floating types" is mentioned as well I would prefer to
fix it as follows<br>
<blockquote>
<pre>diff -rc bs1770gain-0.4.5/bs1770gain/bs1770gain.c bs1770gain/bs1770gain/bs1770gain.c
*** bs1770gain-0.4.5/bs1770gain/bs1770gain.c Wed Jun 24 17:30:10 2015
--- bs1770gain/bs1770gain/bs1770gain.c Sun Jun 28 14:24:30 2015
***************
*** 305,311 ****
char *odirname=NULL;
int loglevel=AV_LOG_QUIET;
double overlap;
! clock_t t1,t2;
int c;
if (1==argc)
--- 305,311 ----
char *odirname=NULL;
int loglevel=AV_LOG_QUIET;
double overlap;
! double t1,t2;
int c;
if (1==argc)
***************
*** 644,650 ****
root.vmt->cleanup(&root);
if (options.time)
! fprintf(stderr, "Duration: %ld ms.\n",(t2-t1)/CLOCKS_PER_MILLIS);
// cleanup:
sox_quit();
// still reachable: 9,689 bytes in 51 blocks
--- 644,650 ----
root.vmt->cleanup(&root);
if (options.time)
! fprintf(stderr, "Duration: %.0f ms.\n",(t2-t1)/CLOCKS_PER_MILLIS);
// cleanup:
sox_quit();
// still reachable: 9,689 bytes in 51 blocks</pre>
</blockquote>
Regards,<br>
<br>
Peter<br>
</body>
</html>