… | |
… | |
54 | |
54 | |
55 | |
55 | |
56 | POSIX optionally offers support for a (potentially) high-resolution |
56 | POSIX optionally offers support for a (potentially) high-resolution |
57 | realtime clock interface. In a good implementation, using it is faster |
57 | realtime clock interface. In a good implementation, using it is faster |
58 | than the normal method of using gettimeofday. Unfortunately, this option |
58 | than the normal method of using gettimeofday. Unfortunately, this option |
59 | is also bound to be broken on some systems, so you can disable use and |
59 | is also bound to be broken on some systems, and current EV versions do not |
60 | probing of this feature altogether here. Otherwise support for this clock |
60 | actually call C<gettimeofday> very often, so ti defaults to no. |
61 | type will be autodetected at compiletime. |
|
|
62 | |
61 | |
63 | EOF |
62 | EOF |
64 | |
63 | |
65 | $DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") =~ /[yY]/)); |
64 | $DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "n") =~ /[yY]/)); |
66 | |
65 | |
67 | print <<EOF; |
66 | print <<EOF; |
68 | |
67 | |
69 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
70 | |
69 | |