Re: Tcl clock

From: Giacomo Fiorin (
Date: Wed Oct 05 2016 - 10:58:47 CDT

I'm not familiar with the specifics of the "clock" function, but the reason
why many Tcl built-in procs are not supported by the interpreter in NAMD is
that some of them broke its portability. See e.g. the old Catamount
operating system of theCray XT3.

Chris: have you guys at UIUC considered adding to the NAMD User's Guide a
list of Tcl commands that are not supported / known to break?

This would be very useful, especially considered that VMD supports them,
causing some confusion.


On Wed, Oct 5, 2016 at 11:42 AM, Laura Joana <>

> There is actually a whole set of Tcl functions we can not use with NAMD.
> They are all at the same directory. My guess is a problem in the
> compilation... I'm trying to solve this now!
> 2016-10-05 16:51 GMT+02:00 Mayne, Christopher G <>:
>> Laura,
>> I was never sure why the “clock” variants don’t work in the Tcl
>> interpreter run inside of NAMD. However, I have gotten away with using
>> [exec date +%s] to get the seconds since the epoch.
>> Regards,
>> Christopher Mayne
>> Dear users and developers,
>> Just a simple question: Why I can not use the "clock" command in the NAMD
>> configuration file?
>> I found this e-mail
>> <
>> 2013-2014/0987.html>
>> from a person with the same problem, but no anwser.
>> The command I want to add is just: "set mytime [clock clicks]"
>> Thaks,
>> Laura

Giacomo Fiorin
Associate Professor of Research
Institute for Computational Molecular Science (ICMS)
College of Science and Technology, Temple University
1925 North 12th Street (035-07), Room 704D
Philadelphia, PA 19122-1801
Phone: +1-215-204-4213
Lab page:
*"As computer programmers we have a responsibility to make sure that we run
the computers instead of the computers running us."*  - Steve Oualline

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:22:31 CST