- question UtilTime

From: [at]} <Gérard>
Date: Thu, 21 Apr 2005 23:48:56 +0200

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


----- Original Message -----
From: "Frans-PieterVonck" <Frans-PieterVonck{([at]})nowhere.xy
To: "BlackBox Mailing List" <blackbox{([at]})nowhere.xy
Sent: Thursday, April 21, 2005 11:18 PM
Subject: [BlackBox] - question UtilTime


> There is something I don't understand in the program UtilTime
> What is the function of these lines?
>
> dt := MAX(REAL);
> dt := MIN(t1 - t0, dt);
>
> If a discard the statement I get the following output
>
> dt = 1.117463398259133E-6
>
> instead of the previous 0,83 µs

The result of t1 - t0 vary from time to time. The resolution of the counter
is the minimum of these results, and it's what the procedure calculates. If
you discard the MIN statement (and the initialization of the loop), you may
get different results at every call.

Cheers.

Gérard

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBccGFyDQotLS0tLSBPcmlnaW5h
bCBNZXNzYWdlIC0tLS0tIFxwYXINCkZyb206ICJGcmFucy1QaWV0ZXJWb25jayIgPEZyYW5zLVBp
ZXRlclZvbmNrQGhldG5ldC5ubD5ccGFyDQpUbzogIkJsYWNrQm94IE1ha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hcg0KR1wnZTlyYXJkXHBhcg0KXHBhcg0KLS0t
IEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJs
YWNrYm94QG9iZXJvbi5jaH19AB9AKGCybwnAYW0

----boundary-LibPST-iamunique-1456590270_-_---
Received on Thu Apr 21 2005 - 23:48:56 UTC

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