Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/plugins/qtranslate-x/qtranslate_frontend.php on line 497
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/themes/suffusion/functions/media.php on line 666
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/themes/suffusion/functions/media.php on line 671
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/themes/suffusion/functions/media.php on line 684
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/themes/suffusion/functions/media.php on line 689
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/cadetill.com/domains/cadetill.com/public_html/wp-content/themes/suffusion/functions/media.php on line 694 (Español) La unit Diagnostics – El blog de cadetill
I’d also mention that if someone want just to writeln elapsed time (TTimeSpan) he/she don’t even need to bother with milliseconds stuff. The easy way is explicit conversion to string, just
var
w: TStopWatch;
…
writeln(‘Elapsed: ‘, string(w.Elapsed));
That’s it. w.Elapsed will call Value.ToString and you get text.
I’d also mention that if someone want just to writeln elapsed time (TTimeSpan) he/she don’t even need to bother with milliseconds stuff. The easy way is explicit conversion to string, just
var
w: TStopWatch;
…
writeln(‘Elapsed: ‘, string(w.Elapsed));
That’s it. w.Elapsed will call Value.ToString and you get text.
Thanks DDev for this tip