All --
For speed reason, you can use GetSystemTimeAsFileTime(), which is
very efficient. The Win32 is little-endian only operating system.
You can use the following code.
void gettimeofday(struct timeval* pTv, void *pDummy);
{
__int64 l;
GetSystemTimeAsFileTime((LPFILETIME) l);
For speed reason, you can use GetSystemTimeAsFileTime(), which is
very efficient. The Win32 is little-endian only operating system.
You can use the following code.
void gettimeofday(struct timeval* pTv, void *pDummy);
{
__int64 l;
GetSystemTimeAsFileTime((LPFILETIME) l);
At 12:01 PM 11/2/2001 -0500, Andy Dougherty wrote:
There's no reason to have the perl community running
two different versions.
There is one reason.
Licensing.
We don't have a solid license for perl 6 yet, but odds are it'll be
different from perl 5's license, and until we know they're the
Could someone on Win32 also compare this to the perl5 version in
ext/Time/HiRes.xs? There's no reason to have the perl community running
two different versions. In particular, the perl5 version
Where did you get that source? I just downloaded the sources from both
ActiveState and CPAN and
At 09:54 AM 11/2/2001 -0800, Brent Dax wrote:
Larry, you're the copyright holder on Perl 5. Can you declare that Perl
6 can copy whatever is needed out of Perl 5 without worrying about
licensing, or something to that effect?
I'm not sure he's in a position to do that even with the core code,
On Fri, 2 Nov 2001, Dan Sugalski wrote:
At 12:01 PM 11/2/2001 -0500, Andy Dougherty wrote:
There's no reason to have the perl community running
two different versions.
There is one reason.
Licensing.
Ouch.
Well, at least for Configure stuff, there is the following from Configure:
#
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] (Andy Dougherty) wrote:
Could someone on Win32 also compare this to the perl5 version in
ext/Time/HiRes.xs? There's no reason to have the perl community running
two different versions. In particular, the perl5 version
Sorry... don't have a
Also, note that Hong Zhang ([EMAIL PROTECTED]) has pointed out a
simplification (1 API call rather than 2)...
FYI. The GetSystemTimeAsFileTime() takes less than 10 assembly instructions.
It just reads the kernel time variable that maps into every address space.
and given I think I've found
void gettimeofday(struct timeval* pTv, void *pDummy);
{
SYSTEMTIME sysTime;
FILETIME fileTime;/* 100ns == 1 */
LARGE_INTEGER i;
GetSystemTime(sysTime);
SystemTimeToFileTime(sysTime, fileTime);
/* Documented as the way to get a 64 bit from a FILETIME. */