]> code.delx.au - gnu-emacs-elpa/commitdiff
Replace obsolete `time-to-seconds' with `float-time'.
authorMario Lang <mlang@delysid.org>
Tue, 4 Mar 2014 10:50:02 +0000 (11:50 +0100)
committerMario Lang <mlang@delysid.org>
Tue, 4 Mar 2014 10:50:02 +0000 (11:50 +0100)
chess-test.el

index 48c683f876972448b67fa8ea951aefb2452ed801..cdbf3357dae0381170bcf222802ff7101123728d 100644 (file)
                          (message "Read %d games (next %d): %d total plies (%.2f ply/sec)"
                                   read-count (1+ index) ply-count
                                   (/ (float ply-count)
-                                     (float
-                                      (time-to-seconds
-                                       (subtract-time (current-time)
-                                                      begin))))))))
+                                     (float-time
+                                      (subtract-time (current-time)
+                                                     begin)))))))
                (error
                 (setq error-occurred t)
                 (message "Error reading game %d: %s"
            (message "Read %d games (last %d): %d plies (%.2f ply/sec, %.2f seconds)"
                     read-count (1- index) ply-count
                     (/ (float ply-count)
-                       (float
-                        (time-to-seconds
-                         (subtract-time (current-time)
-                                        begin))))
-                    (time-to-seconds (subtract-time (current-time)
-                                                    begin)))
+                       (float-time (subtract-time (current-time) begin)))
+                    (float-time (subtract-time (current-time) begin)))
            (message "Running validation suite...done")
            (chess-database-close database)))
       (error "Failed to open chess database '%s'" file))