1 - 17 ms, 553 ╬╝s, and 1 hnsec

Vladimir Panteleev thecybershadow.lists at gmail.com
Thu May 16 15:27:33 UTC 2019


On Thursday, 16 May 2019 at 15:19:03 UTC, Alex wrote:
> 1 - 17 ms, 553 ╬╝s, and 1 hnsec
>
> WTH!! is there any way to just get a normal u rather than some 
> fancy useless asci hieroglyphic? Why don't we have a fancy M? 
> and an h?

It's outputting UTF-8, but, your console is not configured to 
display UTF-8.

On Windows, you can do so (before running your program), by 
running: chcp 65001

Or, within your program, by calling: SetConsoleOutputCP(CP_UTF8);

Note that this has some negative side effects, which is why D 
doesn't do it automatically. (Blame Windows.)

> What's an hnsec anyways?

Hecto-nano-second, the smallest representable unit of time in 
SysTime and Duration.



More information about the Digitalmars-d-learn mailing list