* environment variable for runtime
@ 2019-02-26 16:14 Thomas A. Schmitz
2019-02-27 15:19 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2019-02-26 16:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I would like to typeset the runtime information that context displays at
the end of typesetting:
mkiv lua stats > runtime: 174.639 seconds, 913 processed pages, 913
shipped pages, 5.228 pages/second
system | total runtime: 526.583 seconds
Is this stored in any environment key? How could I access it?
Thanks
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: environment variable for runtime
2019-02-26 16:14 environment variable for runtime Thomas A. Schmitz
@ 2019-02-27 15:19 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-02-27 15:19 UTC (permalink / raw)
To: mailing list for ConTeXt users, Thomas A. Schmitz
On 2/26/2019 5:14 PM, Thomas A. Schmitz wrote:
> Hi,
>
> I would like to typeset the runtime information that context displays at
> the end of typesetting:
>
> mkiv lua stats > runtime: 174.639 seconds, 913 processed pages, 913
> shipped pages, 5.228 pages/second
> system | total runtime: 526.583 seconds
>
> Is this stored in any environment key? How could I access it?
it's in the log file:
local data = io.loaddata("oeps.log") or ""
local pattern = "> runtime: ([%d%.]+) seconds, ([%d]+) processed pages,
([%d]+) shipped pages, ([%d%.]+) pages/second"
local r, n, s, p = string.match(data,pattern)
print(r,n,s,p)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-27 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 16:14 environment variable for runtime Thomas A. Schmitz
2019-02-27 15:19 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).