Re: [libreoffice-users] Re: [BASIC]: Timer() function only has resolution of 1 second

2011-04-17 Thread Johnny Rosenberg
fre 2011-04-15 klockan 05:11 -0700 skrev Jack:
 Johnny Rosenberg wrote:
  
  
  GetSystemTicks()
  
  
 
 Ah, ok.  Thanks for the suggestion.
 
 
 Johnny Rosenberg wrote:
  
  
  Seems like one tick is one millisecond, at least on my system. The rest
  is simple math.
  
  
 
 I suspect it's a little more complicated conversion between ticks and
 conventional time.  I ran a few simple tests, and it looks like there's more
 to it than just 1 to 1 conversion.  But for my application, system ticks
 should work fine.  Thanks again.
 
 Regards
 

I think it's system dependable. On my system it seems to be 1 ms/tick,
on your system it could be different.

-- 
Best regards

Johnny Rosenberg


-- 
Unsubscribe instructions: E-mail to users+h...@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: [BASIC]: Timer() function only has resolution of 1 second

2011-04-15 Thread Jack

Johnny Rosenberg wrote:
 
 
 GetSystemTicks()
 
 

Ah, ok.  Thanks for the suggestion.


Johnny Rosenberg wrote:
 
 
 Seems like one tick is one millisecond, at least on my system. The rest
 is simple math.
 
 

I suspect it's a little more complicated conversion between ticks and
conventional time.  I ran a few simple tests, and it looks like there's more
to it than just 1 to 1 conversion.  But for my application, system ticks
should work fine.  Thanks again.

Regards

--
View this message in context: 
http://nabble.documentfoundation.org/BASIC-Timer-function-only-has-resolution-of-1-second-tp2819804p2824316.html
Sent from the Users mailing list archive at Nabble.com.

-- 
Unsubscribe instructions: E-mail to users+h...@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted