Mercurial > hgrepos > hgweb.cgi > yatex
diff yatexlib.el @ 262:15ec86ff549c dev
Call always bibtex after first typesetting when document needs bibtex.
Display total ellapsed time of all processing for impatients :).
Use value of `%BIBTEX ...' line, if any, to automatic (re)run of bibtex.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 17 Feb 2012 17:42:27 +0900 |
parents | 3e3ccba06ca1 |
children | 9d022a531549 |
line wrap: on
line diff
--- a/yatexlib.el Mon Feb 13 21:59:32 2012 +0900 +++ b/yatexlib.el Fri Feb 17 17:42:27 2012 +0900 @@ -2,7 +2,7 @@ ;;; YaTeX and yahtml common libraries, general functions and definitions ;;; yatexlib.el ;;; (c)1994-2012 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Fri Feb 10 12:30:49 2012 on firestorm +;;; Last modified Fri Feb 17 17:15:37 2012 on firestorm ;;; $Id$ ;; General variables @@ -1534,6 +1534,15 @@ (kill-new string) (message (concat "`%s'" msg) string key)))) +(defun YaTeX-elapsed-time (before after) + "Get elapsed time from BEFORE and AFTER, which are given from currente-time." + (if (fboundp 'float) ;Then, current-time function should be. + (let ((mil (float 1000000))) ;To protect parse error before 19 + (+ (* (- (nth 0 after) (nth 0 before)) 65536) + (- (nth 1 after) (nth 1 before)) + (- (/ (nth 2 after) mil) + (/ (nth 2 before) mil)))))) + ;;; ;; Functions for the Installation time ;;;