Elapsed time format in prompt changed in TCC 25

Dec 16, 2009
9
0
Hi,

I upgraded from Take Command / TCC v24 to v25 and noticed that formatting (and value calculation) of elapsed time ($=) in prompt has changed.

Old format in v24 was "1.22.33,44". New format seems to be "1223344". In addition, the value does not make sense.

Help in v25 says
=The elapsed time (in milliseconds) since the previous command was started.


However, even simple "echo foo" commands gives value over 80000 (80seconds?).

See a screenshot (from http://tkoskine.me/tcc/tcc-24-vs-25-prompt-2019-09-03.png)
tcc-24-vs-25-prompt-2019-09-03.png



Prompt is set to
PROMPT=$e[1;35m[$e[1;36m$m $e[1;32m%LOGONSERVER%$e[0m$b$r$e[1;35m]$e[0m $~ ($=)$_$e[1;35m%@printftp[]%@execstr[perl c:\work\scripts\vcs-detect.pl]$e[0m$g


I assume this is either a documentation or code implementation bug? The elapsed time value in v25 would make sense if it is in microseconds.
 
Dec 16, 2009
9
0
Same problem with simpler prompt:

v24:
> prompt $p $= $g

c:\work 0.00.00,00 >
c:\work 0.00.00,82 >
c:\work 0.00.01,15 >
c:\work 0.00.01,41 >
c:\work 0.00.11,19 >
c:\work 0.00.11,37 >ver

TCC 24.02.50 x64 Windows 10 [Version 10.0.18362.295]

c:\work 0.00.00,00 >


v25:
> prompt $p $= $g

c:\work 12067 >
c:\work 6440684 >
c:\work 6871349 >
c:\work 7775893 >
c:\work 7954276 >
c:\work 8131215 >
c:\work 8332007 >
c:\work 8498167 >ver

TCC 25.00.16 x64 Windows 10 [Version 10.0.18362.295]

c:\work 12581 >


I am running Finnish version of Windows 10, if that matters.
 
Dec 16, 2009
9
0
> I am running Finnish version of Windows 10, if that matters.

Time and decimal settings in TCC seem to matter.

I see the above behaviour if I set Localication /Time to Country, Decimal to Auto and Thousands to Auto.

Setting Decimal and Thousands to "Period" I get same view as vefatica:
> prompt $p $= $g

c:\work 0.013 >
c:\work 0.719 >
c:\work 1.17 >
c:\work 1.69 >
c:\work 2.129 >
c:\work 2.366 >
c:\work 2.558 >
c:\work 2.966 >echo foo
foo

c:\work 0.018 >echo foo
foo

c:\work 0.013 >echo foo
foo

c:\work 0.029 >echo foo
foo

c:\work 0.013 >echo foo
foo

c:\work 0.012 >echo foo
foo

c:\work 0.012 >echo foo
foo

c:\work 0.012 >echo foo
foo

c:\work 0.013 >echo foo
foo

c:\work 0.013 >echo foo
foo

c:\work 0.012 >
 
Dec 16, 2009
9
0
One more example, with options:

TCC v24:
> prompt $p $= $g

c:\work 0.00.00.01 >
c:\work 0.00.00.56 >
c:\work 0.07.01.59 >setdos /g,

c:\work 0.00.00,01 >setdos /g.

c:\work 0.00.00.00 >setdos /g-

c:\work 0.00.00,00 >setdos /gx

c:\work 0.00.00,00 >setdos /gfoo

c:\work 0.00.00,00 >setdos /g,,

c:\work 0.00.00,00 >setdos /g.

c:\work 0.00.00.00 >

TCC v25:
> prompt $p $= $g

c:\work 0.012 >setdos /g,

c:\work 32885 >setdos /g.

c:\work 0.018 >setdos /gx

c:\work 12124 >setdos /g;

c:\work 16821 >setdos /g.

c:\work 0.013 >setdos /g-

c:\work 12799 >setdos /gfoo

c:\work 12045 >
 
Dec 16, 2009
9
0
Yes, same problem there.

TCC v25:
> prompt $p $= $g

c:\work 11806 >timer
Timer 1 on: 18.22.46

c:\work 11985 >echo foo
foo

c:\work 12769 >timer off
Timer 1 off: 18.22.50 Elapsed: 0.00.04,11403

c:\work 12337 >setdos /g.

c:\work 0.012 >timer
Timer 1 on: 18.22.58

c:\work 0.012 >echo foo
foo

c:\work 0.013 >timer off
Timer 1 off: 18.23.01 Elapsed: 0.00.03.119

c:\work 0.012 >
 
Similar threads
Thread starter Title Forum Replies Date
S Elapsed time in TCC prompt question Support 0
sully9 How to? Unexpected %DATE% CMD variable format (vs DATE /T format) in CMDebug Support 1
T Date format date different from cmd Support 7
vefatica @TIMER's format ... Support 2
Joe Caverly DATE format 4 Support 7
M Fixed Set "VAR=VAL" format causes problems Support 12
fpefpe touch - date format Support 2
T Problems with the new help format Support 18
samintz WAD @format has issues in v18.00.14 Support 10
mikea How to? Detecting clipboard format Support 7
fishman@panix.com Help file in Kindle format? Support 5
M PDir format question... Support 3
A Is TCC help available in PDF format? Support 2
S TIME /S report format Support 3
S Vince - forum format revisited Support 1
D No "Format" in right-click menu for DVD Support 11
nikbackm Change format of DIR totals Support 3
C OT: Music file format checker Support 0
S Enhancement suggestion: @format and @formatn Support 0
vefatica ANSI, PROMPT ... ??? Support 1
FreezerBurnt ANSI Prompt messes up list output. Support 39
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
M How to? Black TCC Prompt Support 2
N Command execution slows down in TCC Prompt after a while Support 6
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
vefatica Timing commands with $= in the prompt? Support 16
samintz How to? Alias or prompt? Support 1
samintz MOVE and Prompt on overwrite Support 3
robinsiebler Creating a custom prompt Support 9
K TCC prompt background color Support 4
Alpengreis Problem if command prompt is not legacy Support 4
Joe Caverly Documentation Customizing the TCC Prompt Support 0
C How to? handle the UAC prompt on computer restarts with Everything Support 3
B when doing SFTP via IFTP to my secure site my users always get the finger print key prompt Support 1
M PROMPT with git branch Support 1
MikeBaas How to? SELECT: exclude files / display prompt Support 2
vefatica ? "prompt" command Support 3
Joe Caverly Determine if program started from command prompt Support 2
W Opening a new tab takes forever to get the command prompt Support 5
vefatica UAC prompt? Support 0
C How to? ctrl-c does not prompt "Terminate batch job" Support 2
Mordachai TCMD Prompt Here?!@ Support 14
vefatica Fixed DO, OSD, and cancel batch prompt Support 3
CWBillow Send Command-line with prompt? Support 6
David McClelland Why the prompt to del c:\* Support 7
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
vefatica Cancel batch prompt? Support 0
1 CMD file kicks out to prompt Support 18
Steve Pitts Are you sure prompt from DEL command Support 5

Similar threads