[Tutor] python time

Kent Johnson kent37 at tds.net
Sat Nov 28 00:54:37 CET 2009


On Fri, Nov 27, 2009 at 6:07 PM, spir <denis.spir at free.fr> wrote:

> I am confused here. That's what I first thought (there _must_ be a way to get time more precise that seconds!). But on my system (ubuntu 9.10) I cannot find the proper manner to use these system calls. Even from the command-line directly. Certainly missing something _really_ obvious.

I think you have to call them from C or some other language that can
access the system calls.

>> So only seconds need to be supported for ANSI compliance.
>
> Right. This is precisely the reason why some languages (eg lua) don't provide any way to get time in ms or us. And also the source of my original post on the topic.

Some solutions for Lua here:
http://stackoverflow.com/questions/463101/lua-current-time-in-milliseconds

Kent


More information about the Tutor mailing list