progs/rspit.c: Higher resolution timing.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 22 Mar 2015 01:02:46 +0000 (01:02 +0000)
commit15df46bc848523861d5fd7eb99d2f6b12ead2e59
tree83e59a5427972f22001a7ec848b0d44eb278c7f8
parentbafe8a7b569c884c23e1e21219b49cb1a7fb2480
progs/rspit.c: Higher resolution timing.

Use double-precision for representing time, as seconds since some
arbitrary epoch.  If we're strictly portable then time(3) is all we
have, and we have to convert with difftime(3); otherwise we can have
gettimeofday(2) and convert by hand.
progs/rspit.c