[latex3-commits] [git/LaTeX3-latex3-latex3] master: Simplify \sys_timer: in l3benchmark (see #577) (ffa0206)

Bruno Le Floch bruno at le-floch.fr
Wed May 22 09:06:21 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/ffa0206febb3fe64fd4c7abf776dd41d298446cb

>---------------------------------------------------------------

commit ffa0206febb3fe64fd4c7abf776dd41d298446cb
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Wed May 22 09:06:21 2019 +0200

    Simplify \sys_timer: in l3benchmark (see #577)
    
    Contrarily to Heiko Oberdiek's pdftexcmds where he made the LuaTeX
    emulation look like an internal integer using \numexpr...\relax,
    here we want an integer denotation (simply decimal digits), which is
    precisely what l3kernel.elapsedtime() provides.


>---------------------------------------------------------------

ffa0206febb3fe64fd4c7abf776dd41d298446cb
 l3experimental/l3benchmark/l3benchmark.dtx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3experimental/l3benchmark/l3benchmark.dtx b/l3experimental/l3benchmark/l3benchmark.dtx
index 18d47f4..614e640 100644
--- a/l3experimental/l3benchmark/l3benchmark.dtx
+++ b/l3experimental/l3benchmark/l3benchmark.dtx
@@ -148,13 +148,13 @@
 \sys_if_engine_luatex:TF
   {
     \cs_new:Npn \sys_timer:
-      { \int_eval:w \lua_now:n { l3kernel.elapsedtime() } \scan_stop: }
+      { \lua_now:n { l3kernel.elapsedtime() } }
   }
   {
     \cs_if_exist:NT \tex_elapsedtime:D
       {
         \cs_new:Npn \sys_timer:
-          { \int_eval:w \tex_elapsedtime:D \scan_stop: }
+          { \int_value:w \tex_elapsedtime:D }
       }
   }
 \@@_const:nn { sys_if_timer_exist }





More information about the latex3-commits mailing list