From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37731 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: gettimeofday under XP Date: Thu, 06 Dec 2007 13:43:40 +0100 Message-ID: <4757EE7C.3010607@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196945098 24210 80.91.229.12 (6 Dec 2007 12:44:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 12:44:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 13:45:08 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J0G6D-0001p7-F0 for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 13:45:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E48F1FBD0; Thu, 6 Dec 2007 13:44:48 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31462-01; Thu, 6 Dec 2007 13:44:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0714F1FBD2; Thu, 6 Dec 2007 13:44:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75DCE1FBD2 for ; Thu, 6 Dec 2007 13:44:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27974-01-13 for ; Thu, 6 Dec 2007 13:43:42 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id D5DD01FB6D for ; Thu, 6 Dec 2007 13:43:42 +0100 (CET) Original-Received: (qmail invoked by alias); 06 Dec 2007 12:43:42 -0000 Original-Received: from i5387CBD6.versanet.de (EHLO [192.168.1.3]) [83.135.203.214] by mail.gmx.net (mp058) with SMTP; 06 Dec 2007 13:43:42 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1/agvBo9U7aHuK8dCPQiZ+OoAaHPmksBYIF+E5dsf O6bOd64uDAzAI7 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) X-Enigmail-Version: 0.95.5 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37731 Archived-At: Hi, I run into the following error with the new version: 'luatools --generate' results in Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) There seems to be no 'os.gettimeofday' under Windows XP. This patch of luatools.lua works here (better check twice) :D if os.gettimeofday then os.clock = os.gettimeofday local startuptime = os.gettimeofday() function os.runtime() return os.gettimeofday() - startuptime end end -- if os.gettimeofday then -- os.clock = os.gettimeofday -- end -- do -- local startuptime = os.gettimeofday() -- function os.runtime() -- return os.gettimeofday() - startuptime -- end -- end Best wishes, Peter ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________