Author: Reinhard Max <email@example.com> State: Final Type: Project Vote: Done Created: 12-Jul-2004 Post-History: Keywords: clock, milliseconds, microseconds Tcl-Version: 8.5
This TIP proposes to replace clock clicks -milliseconds by clock milliseconds and clock clicks -microseconds by clock microseconds.
Rename the clock clicks -microseconds command as defined by  to clock microseconds.
Deprecate clock clicks -milliseconds, and make it's functionality as defined by  available as clock milliseconds.
In the author's understanding, the whole purpose of the clock clicks name was to indicate that the returned value is neither absolute nor guaranteed to have the same unit on different platforms. With the changes of  in place both cases are not true anymore. Therefore the commands to return absolute timestamps with millisecond and microsecond resolution should be on the same level as clock seconds rather than being switches to clock clicks.
The -microseconds option can be removed from clock clicks immediately, because it never has been part of an official Tcl release while -milliseconds has to be kept at least until the next major release for backwards compatibility.
A reference implementation has been added to the Tcl patch tracker at SourceForge, item #991742 .
This document has been placed in the public domain.