Author Topic: start and end time of ATK job  (Read 8436 times)

0 Members and 1 Guest are viewing this topic.

Offline serhan

  • Heavy QuantumATK user
  • ***
  • Posts: 98
  • Reputation: 1
    • View Profile
start and end time of ATK job
« on: January 13, 2009, 10:26 »
Hello,

How can I print the start and end time of an ATK simulation? When I start ATK inside VNL it prints the start and end time but when I start ATK alone from command prompt, it does not print time?

Regards

Serhan

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: start and end time of ATK job
« Reply #1 on: January 13, 2009, 11:12 »
There are several options. A rough way (which however doesn't work if you are in Windows, or if you use a queuing system to launch ATK) is to issue the ATK command wrapped in shell "date" statements, that is
Code
date ; atk myinputfile.py > logfile.log ; date 
However, this will not print the date to the logfile (logfile.log), so we're much better off using Python (as usually is the case ;) ). A quite fancy method, which also can calculate how long time the calculation took, is discussed in the manual. The most convenient solution is, however, probably to just add these lines in the beginning and end of the input script:
Code
import datetime
print "Calculation started:", datetime.datetime.now().replace(microsecond=0)
...
# ... original script ...
...
print "Calculation ended:", datetime.datetime.now().replace(microsecond=0)

Offline serhan

  • Heavy QuantumATK user
  • ***
  • Posts: 98
  • Reputation: 1
    • View Profile
Re: start and end time of ATK job
« Reply #2 on: January 13, 2009, 21:12 »
Thanks again...

(I wish there would be a "Helped" button on the forum so that we can give points for helping people... :) )

Serhan

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: start and end time of ATK job
« Reply #3 on: January 13, 2009, 21:15 »
Well I agree - but Anders Blom already has 5 blue stars - so he must be senior ranking :)

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: start and end time of ATK job
« Reply #4 on: January 13, 2009, 22:17 »
I have activated the "Karma" feature on the Forum, which is what you asked for, Serhan :) So now you can "applaud" me (or anyone else for that matter) if you wish!

I called it "Reputation" however instead of Karma, which didn't seem to be an entirely suitable label. Any better suggestions? "Pythonity"? :) Applaud/Smite ok?

Offline serhan

  • Heavy QuantumATK user
  • ***
  • Posts: 98
  • Reputation: 1
    • View Profile
Re: start and end time of ATK job
« Reply #5 on: January 14, 2009, 05:06 »
applaud is very good according to me. also we can use pythonity it is also good :) or "pomum", Latin of applaud if we want some different thing :) But applaud is also good  ;)

Thanks....

Serhan