Commit graph

13 commits

Author SHA1 Message Date
Dmitrij D. Czarkoff
1de1a466b8 Store time in milliseconds 2016-08-15 00:28:24 +02:00
Dmitrij D. Czarkoff
c13db788bb Use clock_gettime() instead of clock()
clock() provides approximation of processor time used, measured in "clocks".
Amount of clock per second varies between 100 (Minix, NetBSD, OpenBSD), 128
(DragonFly BSD, FreeBSD, older versions of MacOS X), 1000 (Windows) and 1000000
(Linux, newer versions of MacOS X, Solaris).  The range of these numbers make
conversion to milliseconds (the unit of display in `qrtest`) problematic.
clock_gettime() with its nanosecond time base appears to be a better and more
portable alternative to clock().
2016-08-13 23:14:55 +02:00
Dmitrij D. Czarkoff
894e8c8b2d Replaced remaining instance of png_infopp_NULL 2016-08-11 01:21:45 +02:00
Dmitrij D. Czarkoff
176ba28362 Fix compatibility with newer libpng 2016-08-11 00:02:38 +02:00
Daniel Beer
d968f0ae33 Merge pull request #11 from kAworu/display-human-readable-data-type
dump_data: display a human readable Data type.
2016-07-20 08:24:06 +12:00
Alexandre Perrin
d78123da72 dump_data: display a human readable Data type. 2016-07-18 14:27:17 +02:00
Alexandre Perrin
443bb5576f PNG_COLOR_TYPE_PALETTE support for inspect and qrtest. 2016-07-18 14:23:08 +02:00
Alexandre Perrin
09cc95b989 check_if_png: clarify comments.
Before this patch check_if_png() comment was kind of misleading because
it talked about the behaviour of png_sig_cmp() which isn't the same as
check_if_png().
2016-07-14 16:04:26 +02:00
Daniel Beer
e8005d43c6 dbgutil.c: use C89-compatible variable declarations. 2016-07-13 08:54:52 +12:00
Alexandre Perrin
549f5b2c4d png support for inspect and qrtest. 2016-07-12 09:34:11 +02:00
Daniel Beer
bc253ec3ea qrtest: fix filename extension check. 2013-05-29 10:23:23 +12:00
Daniel Beer
b7a6827b54 Fixed possible division by zero in qrtest. 2012-11-13 10:43:36 +13:00
Daniel Beer
a3142bc6b4 Initial commit: version 1.0. 2012-05-04 12:58:42 +12:00