🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9591

Sleep() funtion in XP

#9591
From: Francisco Villa
Date: Tue, 22 Jun 2004 07:20
19 lines
1200 bytes
I use Sleep () inside a thread to separate bytes to be writen to ther serial
port..

MyPort->Write(myByte);
t0=GetTickCount();
Sleep (3);
t01=GetTickCount ()-t0;


On win 98
 t01 values 3 ==> oK.

But it appears to not count miliseconds propertly on Xp.

On XP t01 values 16 or 15.


Any Clue?
Technical Details
Message-ID: <40d7dda3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,78dca2a71f1a0ab4,start
X-Google-Attributes: gid10cc67,public
From: "Francisco Villa" <nospam_francisco_destel@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Sleep() funtion in XP
Date: Tue, 22 Jun 2004 09:20:05 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.33.64.150
Message-ID: <40d7dda3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087888803 80.33.64.150 (22 Jun 2004 00:20:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail