Ticket #2136: implement user-friendly interruption of long-time operations.
commit62faec3a616607d17a5896f1bdf694bdb1467f77
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 10 Mar 2013 06:49:33 +0000 (10 10:49 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Tue, 22 Jul 2014 09:40:30 +0000 (22 13:40 +0400)
treed71cf15583caf97d8192330ac4f91f03af098c4a
parente786d8266ee36cf2b49a48cb1dcea5d8e918307f
Ticket #2136: implement user-friendly interruption of long-time operations.

Initial step: created a simple timer.

Unlike GTimer, mc timer doesn't use a lot of multiplications and
divisions to convert seconds to nanoseconds and back. mc timer use only
multiplications to convert seconds to microseconds.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/Makefile.am
lib/timer.c [new file with mode: 0644]
lib/timer.h [new file with mode: 0644]