- System time in BB

From: CFB Software <"CFB>
Date: Sat, 16 Apr 2005 12:19:46 +0930

----boundary-LibPST-iamunique-2093441090_-_-
Content-type: text/plain

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.
>
> Thanks,
>
> W.
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>
>
>

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-2093441090_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke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wYXINCj5ccGFyDQo+IFcuXHBhcg0KPlxw
YXINCj4gLS0tIEJsYWNrQm94XHBhcg0KPiAtLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJT
Q1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KPlxwYXINCj5ccGFyDQo+XHBhcg0KXHBh
cg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJF
IHRvIGJsYWNrYm94QG9iZXJvbi5jaFxwYXINCn19ADg4NTk=


----boundary-LibPST-iamunique-2093441090_-_---
Received on Sat Apr 16 2005 - 04:49:46 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:17 UTC