| 123 | |
| 124 | |
| 125 | void usage(void) |
| 126 | { |
| 127 | printf("\n"); |
| 128 | printf("USAGE: %s [options]\n\n", program_name); |
| 129 | printf("Options:\n"); |
| 130 | printf("-lb = Simulate holding down the left mouse button while the benchmark is\n"); |
| 131 | printf(" running\n"); |
| 132 | printf("-mb = Simulate holding down the middle mouse button while the benchmark is\n"); |
| 133 | printf(" running\n"); |
| 134 | printf("-mx <p> = Simulate continuous horizontal mouse movement while the benchmark\n"); |
| 135 | printf(" is running (<p> specifies the maximum range of motion, in pixels,\n"); |
| 136 | printf(" relative to the center of the sampling block)\n"); |
| 137 | printf("-my <p> = Simulate continuous vertical mouse movement while the benchmark\n"); |
| 138 | printf(" is running (<p> specifies the maximum range of motion, in pixels,\n"); |
| 139 | printf(" relative to the center of the sampling block)\n"); |
| 140 | printf("-rb = Simulate holding down the right mouse button while the benchmark is\n"); |
| 141 | printf(" running\n"); |
| 142 | printf("-s <s> = Sample the window <s> times per second (default: %d)\n", |
| 143 | DEFSAMPLERATE); |
| 144 | printf("-t <t> = Run the benchmark for <t> seconds (default: %.1f)\n", |
| 145 | DEFBENCHTIME); |
| 146 | printf("-wh <wh> = Explicitly specify a window, if auto-detect fails\n"); |
| 147 | printf(" (<wh> is the window handle in hex)\n"); |
| 148 | printf("-x <x> = specify x offset of the sampling block, relative to the window\n"); |
| 149 | printf("-y <y> = specify y offset of the sampling block, relative to the window\n\n"); |
| 150 | exit(1); |
| 151 | } |
| 152 | |
| 153 | |
| 154 | int main(int argc, char **argv) |