| 210 char clkstr[16]; |
210 char clkstr[16]; |
| 211 unsigned clkmv = i + 2; /* time for the next move! */ |
211 unsigned clkmv = i + 2; /* time for the next move! */ |
| 212 uint16_t clk = remaining_movetime2(gameinfo, gamestate, clkmv); |
212 uint16_t clk = remaining_movetime2(gameinfo, gamestate, clkmv); |
| 213 print_clk(clk, clkstr, true); |
213 print_clk(clk, clkstr, true); |
| 214 fprintf(stream, " {[%%clk %s]}", clkstr); |
214 fprintf(stream, " {[%%clk %s]}", clkstr); |
| |
215 |
| |
216 /* elapsed move time */ |
| |
217 print_clk(gamestate->moves[i].movetime.tv_sec, clkstr, true); |
| |
218 fprintf(stream, " {[%%emt %s]}", clkstr); |
| 215 } |
219 } |
| 216 |
220 |
| 217 /* line break every 10 half-moves */ |
221 /* line break every 10 half-moves */ |
| 218 if ((i+1) % 10) { |
222 if ((i+1) % 10) { |
| 219 fputc(' ', stream); |
223 fputc(' ', stream); |