On Thursday, 15 October 2020 at 20:47:43 UTC, Imperatorn wrote:
On Thursday, 15 October 2020 at 20:13:37 UTC, Atmosfear wrote:
On Thursday, 15 October 2020 at 16:32:06 UTC, Imperatorn wrote:
[...]
I'm a newby. Can you show me an example? In which module is it?
I see. What Editor/IDE are you using btw?
If you use Visual Studio 2019 with the VisualD extension or
Visual Studio Code with the D Programming Language (code-d)
extension you can get some nice help with these kinds of things.
To the question, try this:
import std.stdio;
import core.sys.windows.winbase;
import core.sys.windows.windef;
import core.sys.windows.windows;
void main()
{
LARGE_INTEGER li;
BOOL b = QueryPerformanceCounter(&li);
//Don't know what you're after. Defined in winnt
writeln(li.QuadPart);
readln();
}
I use online DMD. I'll try VS 2019 with the VisualD.