Jump to content

How do I get the system time in Windows?


LFX

Recommended Posts

I know there is the system() expression, but the only thing that works is system(time), not 'time /t'.

Edit: Or do you know another way to check how much time has passed since the last cook of a node?

Edited by LFX
Link to comment
Share on other sites

you can use python for that, for example

import time

print time.time()

will print time elapsed since epoch in seconds. see the documentation of the "time" module for much more options:

http://docs.python.org/library/time.html

there is also a "datetime" module which allows you to do complex manipulations on objects representing time points or ranges.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...