ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

microsecond-accurate timing on Windows
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Martin Sedlak



Joined: 26 Nov 2010
Posts: 713

PostPost subject: Re: microsecond-accurate timing on Windows    Posted: Mon May 28, 2012 5:10 pm Reply to topic Reply with quote

diep wrote:
Let me write it again. It has granularity internal of within a nanosecond that gets converted. So if it says something has been eating 3 milliseconds, it can be 3.000 or 3.999 but not 4 milliseconds and definitely not 2.1 milliseconds.

It depends on system you use, though i doubt you get 1ms granularity with GetTickCount().

Here's what I get on XP using GetTickCount():
delta = 0 ms
delta = 16 ms
delta = 31 ms
delta = 47 ms
delta = 63 ms
...

and using timeGetTime():

delta = 0 ms
delta = 1 ms
delta = 2 ms
delta = 3 ms
delta = 4 ms
...

With other words, anything that takes less that 16 msec, measured using GetTickCount, will report either 0ms or 16ms.
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 10:20 am
      Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 12:56 pm
      Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 2:44 pm
            Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 3:22 pm
                  Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 3:30 pm
                        Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 5:10 pm
                              Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 7:05 pm
            Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 3:36 pm
                  Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 3:39 pm
                        Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 5:20 pm
                              Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 6:23 pm
                                    Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 7:13 pm
                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 7:18 pm
                                                Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 8:33 pm
                                                      Re: microsecond-accurate timing on Windows Aleks Peshkov Tue May 29, 2012 7:50 am
                                                            Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 8:26 am
                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon May 28, 2012 7:37 pm
                                                Re: microsecond-accurate timing on Windows Martin Sedlak Mon May 28, 2012 8:07 pm
                                                      Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 12:44 pm
                                                            Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 1:15 pm
                                                                  Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 3:07 pm
                                                                        Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 4:38 pm
                                                      Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 12:55 pm
                                                      Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 1:11 pm
                                                            Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 1:29 pm
                                                                  Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 3:18 pm
                                                                        Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 5:00 pm
                                                                              Re: microsecond-accurate timing on Windows Wylie Garvin Tue May 29, 2012 9:38 pm
                                                                                    Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 9:48 pm
                                                                                          Re: microsecond-accurate timing on Windows Martin Sedlak Wed May 30, 2012 9:10 am
                                                                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Fri Jun 01, 2012 9:24 am
                                                                                          Re: microsecond-accurate timing on Windows Martin Sedlak Fri Jun 01, 2012 10:52 am
                                                                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Sat Jun 02, 2012 3:36 pm
                                                                                          Re: microsecond-accurate timing on Windows Martin Sedlak Sun Jun 03, 2012 7:45 am
                                                                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon Jun 04, 2012 11:25 am
                                                                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Mon Jun 04, 2012 11:39 am
                                                                                          Re: microsecond-accurate timing on Windows Martin Sedlak Mon Jun 04, 2012 12:31 pm
                                                                                          Re: microsecond-accurate timing on Windows Martin Sedlak Mon Jun 04, 2012 12:12 pm
                                                                                    Re: microsecond-accurate timing on Windows Martin Sedlak Wed May 30, 2012 9:13 am
                                                                                          Re: microsecond-accurate timing on Windows Vincent Diepeveen Fri Jun 01, 2012 9:29 am
                                                                        Re: microsecond-accurate timing on Windows Martin Sedlak Tue May 29, 2012 5:25 pm
                                                                              Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 7:19 pm
                                                                                    Re: microsecond-accurate timing on Windows Martin Sedlak Wed May 30, 2012 11:41 am
                                                                                          Re: microsecond-accurate timing on Windows Thomas Petzke Wed May 30, 2012 2:57 pm
                                                                              Re: microsecond-accurate timing on Windows Vincent Diepeveen Tue May 29, 2012 7:27 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads