Re: [Oorexx-devel] Higher precision time on Windows.

2023-04-06 Thread Mike Cowlishaw
HI .. just back from 2 weeks in Spain.  I have code for high-res times in 
Windows .. doesn't use that API, I'm certain.
 
Huge backlog at the moment, nudge me in a few days and I'll look for it.
 
Mike


  _  

From: Rick McGuire [mailto:object.r...@gmail.com] 
Sent: 05 April 2023 10:33
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] Higher precision time on Windows.


The good news is it does work. The bad news is that rxwinsys on longer compiles 
if I bump the API level.  

Rick

On Wed, Apr 5, 2023 at 3:23 AM Erich Steinböck  
wrote:


Hi Rick,
we've so far refrained from using a Windows API younger than 0600 (0600 means 
no more support for XP, but Vista and above still supported).

GetSystemTimePreciseAsFileTime is _WIN32_WINNT_WIN8 and thus would be the end 
of ooRexx support for Vista and Windows 7.


It's the compile define _WIN32_WINNT=0x0600 in CMakeLists.txt that stops us 
from inadvertently introducing code with such a newer API.



___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Higher precision time on Windows.

2023-04-05 Thread Rick McGuire
The good news is it does work. The bad news is that rxwinsys on longer
compiles if I bump the API level.

Rick

On Wed, Apr 5, 2023 at 3:23 AM Erich Steinböck 
wrote:

> Hi Rick,
> we've so far refrained from using a Windows API younger than 0600 (0600
> means no more support for XP, but Vista and above still supported).
> GetSystemTimePreciseAsFileTime is _WIN32_WINNT_WIN8 and thus would be the
> end of ooRexx support for Vista and Windows 7.
>
> It's the compile define _WIN32_WINNT=0x0600 in CMakeLists.txt that stops
> us from inadvertently introducing code with such a newer API.
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Higher precision time on Windows.

2023-04-05 Thread Rick McGuire
Ah, thanks. I was just doing an exploratory change to see if this would
work. The decision on the Win 7 implications can be made later. It was
driving me nuts that it wasn't compiling correctly!

Rick

On Wed, Apr 5, 2023 at 3:23 AM Erich Steinböck 
wrote:

> Hi Rick,
> we've so far refrained from using a Windows API younger than 0600 (0600
> means no more support for XP, but Vista and above still supported).
> GetSystemTimePreciseAsFileTime is _WIN32_WINNT_WIN8 and thus would be the
> end of ooRexx support for Vista and Windows 7.
>
> It's the compile define _WIN32_WINNT=0x0600 in CMakeLists.txt that stops
> us from inadvertently introducing code with such a newer API.
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Higher precision time on Windows.

2023-04-05 Thread Erich Steinböck
Hi Rick,
we've so far refrained from using a Windows API younger than 0600 (0600
means no more support for XP, but Vista and above still supported).
GetSystemTimePreciseAsFileTime is _WIN32_WINNT_WIN8 and thus would be the
end of ooRexx support for Vista and Windows 7.

It's the compile define _WIN32_WINNT=0x0600 in CMakeLists.txt that stops us
from inadvertently introducing code with such a newer API.
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] Higher precision time on Windows.

2023-04-04 Thread Rick McGuire
According to ChatNGT, the attached patch should allow us to have
microsecond time resultion on Windows. Unfortunately, I can't get it to
compile. It can't seem to find the definition of
GetSystemTimePreciseAsFileTime(). I have the correct level of the SDK, I
can find it defined in the header files, but I can't get to compile.
Perhaps someone else would like to give this a try.

Rick


precise.patch
Description: Binary data
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel