----boundary-LibPST-iamunique-1778927100_-_-
Content-type: text/plain
Chris:
I am using Services.Ticks now, but it is not ideal for me because it
returns the time in milliseconds since BB was started. I.e., the
"Ticks = 0" is the time when I double-clicked on the BB icon.
I need an absolute day time for data logging, with the resolution of 1 ms.
I do not understand you assertion that the time is accurate
to within 10-20 ms. Could you please explain?
W.
> P.S. If the resolution of GetSystemTime is acceptable to you, an
> alternative
> to changing the definition of Blackbox Time is to use the existing
> BlackBox
> function 'Services.Ticks'. Like GetSystemTime this is accurate to within
> about 10-20 ms.
>
> Chris Burrows
> CFB Software
> http://www.cfbsoftware.com/gpcp
>
>
>> -----Original Message-----
>> From: blackbox{([at]})nowhere.xy>> Software
>> Sent: Saturday, 16 April 2005 12:20 PM
>> To: BlackBox Mailing List
>> Subject: [BlackBox] - System time in BB
>>
>>
>> Note that the accuracy of GetSystemTime at a resolution of tens of
>> milliseconds or less is questionable. If you want more accurate
>> timing than
>> this investigate using Windows Multimedia Timer facilities. For an
>> example
>> of its use in Component Pascal look at the source code for the
>> Blackbox Dev
>> > Profiler tool.
>>
>> Chris Burrows
>> CFB Software
>> http://www.cfbsoftware.com
>>
>>
>>
>> > -----Original Message-----
>> > From: blackbox{([at]})nowhere.xy>> > skulski{([at]})nowhere.xy>> > Sent: Saturday, 16 April 2005 3:13 AM
>> > To: BlackBox Mailing List
>> > Subject: [BlackBox] - System time in BB
>> >
>> >
>> > Dear OMS:
>> >
>> > I suggest to provide the millisecond time field in future
>> BlackBox 1.5.
>> > Namely, I suggest to change Dates.Time from
>> >
>> > Time* = RECORD
>> > hour*, minute*, second*: INTEGER (*BB 1.4 and 1.5 beta *)
>> > END;
>> >
>> > to
>> >
>> > Time* = RECORD
>> > hour*, minute*, second*, millisecond*: INTEGER (*BB 1.5 *)
>> > END;
>> >
>> > The Windows system procedure KERNEL32.GetSystemTime provides this
>> > information.
>> >
>> > Motivation: in data logging applications the one-second
>> resolution is not
>> > good enough.
>> >
>> > For the CookBook: I am now implementing the millisecond timer,
>> and I will
>> > send a HowTo message to the CookBook when I am done.
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1778927100_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIENocmlzOlxwYXINClxwYXINCkkgYW0gdXNpbmcg
U2VydmljZXMuVGlja3Mgbm93LCBidXQgaXQgaXMgbm90IGlkZWFsIGZvciBtZSBiZWNhdXNlIGl0
XHBhcg0KcmV0dXJucyB0aGUgdGltZSBpbiBtaWxsaXNlY29uZHMgc2luY2UgQkIgd2FzIHN0YXJ0
ZWQuIEkuZS4sIHRoZVxwYXINCiJUaWNrcyA9IDAiIGlzIHRoZSB0aW1lIHdoZW4gSSBkb3VibGUt
Y2xpY2tlZCBvbiB0aGUgQkIgaWNvbi5ccGFyDQpJIG5lZWQgYW4gYWJzb2x1dGUgZGF5IHRpbWUg
Zm9yIGRhdGEgbG9nZ2luZywgd2l0aCB0aGUgcmVzb2x1dGlvbiBvZiAxIG1zLlxwYXINClxwYXIN
CkkgZG8gbm90IHVuZGVyc3RhbmQgeW91IGFzc2VydGlvbiB0aGF0IHRoZSB0aW1lIGlzIGFjY3Vy
YXRlXHBhcg0KdG8gd2l0aGluIDEwLTIwIG1zLiBDb3VsZCB5b3U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