[Vm-dev] Re: [win32] Morphic event timeStamp bug

Marcel Taeumel marcel.taeumel at student.hpi.uni-potsdam.de
Mon May 4 12:29:40 UTC 2015


Well, it seems that either GetTickCount() does not return the time elapsed
since system - not process - start, or that the Windows CogVM does use
another version of ioMSecs(), which I cannot spot in the sources.

This, I found in sqWin32Time.c:

int ioMSecs()
{
  /* Make sure the value fits into Squeak SmallIntegers */
#ifndef _WIN32_WCE
  return timeGetTime() & 0x3FFFFFFF;
#else
  return GetTickCount() &0x3FFFFFFF;
#endif
}

There also is a function declaration in sq.h:

sqInt ioMSecs(void);

But I cannot spot the default definition/macro as the comment says:

"
...
By default, the basic ioMSec() clock function is defined
   here as a macro based on the standard C library function clock().
..."

Maybe the comment is outdated... or my sources. :D

Is there a difference between sqInt and int?

Best,
Marcel



--
View this message in context: http://forum.world.st/win32-Morphic-event-timeStamp-bug-tp4824244p4824259.html
Sent from the Squeak VM mailing list archive at Nabble.com.


More information about the Vm-dev mailing list