http://groups.google.com/group/comp.lang.c++?hl=en
comp.lang.c++@googlegroups.com
Today's topics:
* Binary file IO: Converting imported sequences of chars to desired type - 2
messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/690c45c0197f60ef?hl=en
* ( ^_^ ) cheap NIKE air jordanshoes,nike shox,nike air max-shangxing Trading
Co.,Ltd at :www.getjordanshoes.com - 4 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/b22b16fa67304a3c?hl=en
* Musatov's 'Mode/Code' Primary method call - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/8d3be3102f34d822?hl=en
* o(≧v≦)o~~ High quality discount UGG shoes&others shoes in website www.
uggonfoot.com - 3 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9dda92e210d94ed8?hl=en
* Differences between default initialisation - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/b165fb4135563758?hl=en
* c++ build question - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/92a3f21ecdea9375?hl=en
* Portable library to measure time - 5 messages, 5 authors
http://groups.google.com/group/comp.lang.c++/t/9215c47c4398d6d8?hl=en
* efficient swap method - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/d9911a558abbff19?hl=en
* ∵Paypal Paymen∴www.wholesale789.com sell cheap nike jordan 1-25 shoes,louis
vuitton fendi coach handbags,air max ltd tn 90 shoes - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/3f9a8910d2d8ba36?hl=en
* ★→Paypal Payment←★Cheap wholesale brand fashion AAA True Leather,Purses,
Handbag (LV,Coach,Gucci,Juicy,Miumiu,Dior,Bos-s,Prada,ED Hardy,D&G,Versace,
Burberry...) www.wholesale789.com - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/fa49dc979db2d16f?hl=en
==============================================================================
TOPIC: Binary file IO: Converting imported sequences of chars to desired type
http://groups.google.com/group/comp.lang.c++/t/690c45c0197f60ef?hl=en
==============================================================================
== 1 of 2 ==
Date: Sat, Oct 31 2009 11:54 pm
From: Brian
On Oct 30, 11:08 am, James Kanze <james.ka...@gmail.com> wrote:
> On Oct 30, 9:37 am, Rune Allnor <all...@tele.ntnu.no> wrote:
>
> > On 30 Okt, 09:44, James Kanze <james.ka...@gmail.com> wrote:
> [...]
> > So what does text-based formats actually buy you?
>
> Shorter development times, less expensive development, greater
> reliability...
>
> In sum, lower cost.
>
Since a message using a text format is generally longer than
binary formats, text leaves systems more vulnerable to
network problems caused by storms, cyber attacks, etc.
I won't argue the point about it being easier to use text,
but think it's a little like buying an SUV. If the price of
gas goes way up, many wish they had never bought an SUV.
Using binary might be a way to mitigate the pain caused by
volatile markets/conditions.
Brian Wood
Ebenezer Enterprises
http://webEbenezer.net
== 2 of 2 ==
Date: Sun, Nov 1 2009 12:32 pm
From: Gerhard Fiedler
Brian wrote:
> Since a message using a text format is generally longer than binary
> formats, text leaves systems more vulnerable to network problems
> caused by storms, cyber attacks, etc. I won't argue the point about
> it being easier to use text, but think it's a little like buying an
> SUV. If the price of gas goes way up, many wish they had never
> bought an SUV. Using binary might be a way to mitigate the pain
> caused by volatile markets/conditions.
If you're talking about sending something over a potentially unstable
network connection, simple binary is pretty bad. With text encoding
(could be e.g. base64 encoded binary, or pretty much everything else
that's guaranteed not to use all available symbols), you have a few
symbols left that you can use for stream synchronization. This is in
general much more important that a few bytes more to transmit. This may
even be important when storing data on disk: the chances of recovering
data if there's a problem is much higher if you have sync symbols in the
data stream.
There's a point for (simple) binary protocols when all you have is an
8bit microcontroller with 100 bytes of RAM and 1k of Flash. But you
typically don't program these in standard-compliant C++ :)
IMO this has nothing to do with SUVs... more with seat belts, if you
really want an automotive analogy. While they add weight to the vehicle,
and on (very) rare occasions may complicate things if there's a problem,
in most problem cases they can save your face, and more. (Which, back to
programming, may save your job -- and with it the payments for your SUV.
Now here we're back to the SUV :)
Gerhard
==============================================================================
TOPIC: ( ^_^ ) cheap NIKE air jordanshoes,nike shox,nike air max-shangxing
Trading Co.,Ltd at :www.getjordanshoes.com
http://groups.google.com/group/comp.lang.c++/t/b22b16fa67304a3c?hl=en
==============================================================================
== 1 of 4 ==
Date: Sun, Nov 1 2009 1:44 am
From: getjordanshoes
└(^o^)┘ cheap Sneaker NIKE air jordanshoes,nike shoes,nike air max-
shangxing Trading Co.,Ltd
comAir Jordans Collezione sneaker www.getjordanshoes.com
Air-Jordan-J1 sneaker www.getjordanshoes.com
Air-Jordan-J2 sneaker www.getjordanshoes.com
Air-Jordan-J3 sneaker www.getjordanshoes.com
Air-Jordan-J4 sneaker www.getjordanshoes.com
Air-Jordan-J5 sneaker www.getjordanshoes.com
Air-Jordan-J6 sneaker www.getjordanshoes.com
Air-Jordan-J7 sneaker www.getjordanshoes.com
Air-Jordan-J8 sneaker www.getjordanshoes.com
Air-Jordan-J9 sneaker www.getjordanshoes.com
Air-Jordan-J10 sneaker www.getjordanshoes.com
Air-Jordan-J11 sneaker www.getjordanshoes.com
Air-Jordan-J12 sneaker www.getjordanshoes.com
Air-Jordan-J13 sneaker www.getjordanshoes.com
Air-Jordan-J14 sneaker www.getjordanshoes.com
Air-Jordan-J15 sneaker www.getjordanshoes.com
Air-Jordan-J16 sneaker www.getjordanshoes.com
Air-Jordan-J17 sneaker www.getjordanshoes.com
Air-Jordan-J18 sneaker www.getjordanshoes.com
Air-Jordan-J19 sneaker www.getjordanshoes.com
Air-Jordan-J20 sneaker www.getjordanshoes.com
Air-Jordan-J21 sneaker www.getjordanshoes.com
Air-Jordan-J22 sneaker www.getjordanshoes.com
Air-Jordan-J23 sneaker www.getjordanshoes.com
Air-Jordan Fusion sneaker www.getjordanshoes.com
Nike Air Max sneaker www.getjordanshoes.com
Air-Max-LTD sneaker www.getjordanshoes.com
Air-Max-TN sneaker www.getjordanshoes.com
Air-Max-1 sneaker www.getjordanshoes.com
Air-Max-89 sneaker www.getjordanshoes.com
Air-Max-90 sneaker www.getjordanshoes.com
Air-Max-95 sneaker www.getjordanshoes.com
Air-Max-360 sneaker www.getjordanshoes.com
Air-Max-2009 sneaker www.getjordanshoes.com
Nike-Shox-R3 sneaker www.getjordanshoes.com
Nike-Shox-R4 sneaker www.getjordanshoes.com
Nike-Shox-TL3 sneaker www.getjordanshoes.com
Nike-Shox-NZ sneaker www.getjordanshoes.com
Nike-Shox-OZ sneaker www.getjordanshoes.com
Gucci Low Top sneaker www.getjordanshoes.com
Gucci High Top sneaker www.getjordanshoes.com
Gucci Size 14 sneaker www.getjordanshoes.com
D&G sneaker www.getjordanshoes.com
Puma sneaker www.getjordanshoes.com
== 2 of 4 ==
Date: Sun, Nov 1 2009 1:46 am
From: getjordanshoes
└(^o^)┘ cheap Sneaker NIKE air jordanshoes,nike shoes,nike air max-
shangxing Trading Co.,Ltd
comAir Jordans Collezione sneaker www.getjordanshoes.com
Air-Jordan-J1 sneaker www.getjordanshoes.com
Air-Jordan-J2 sneaker www.getjordanshoes.com
Air-Jordan-J3 sneaker www.getjordanshoes.com
Air-Jordan-J4 sneaker www.getjordanshoes.com
Air-Jordan-J5 sneaker www.getjordanshoes.com
Air-Jordan-J6 sneaker www.getjordanshoes.com
Air-Jordan-J7 sneaker www.getjordanshoes.com
Air-Jordan-J8 sneaker www.getjordanshoes.com
Air-Jordan-J9 sneaker www.getjordanshoes.com
Air-Jordan-J10 sneaker www.getjordanshoes.com
Air-Jordan-J11 sneaker www.getjordanshoes.com
Air-Jordan-J12 sneaker www.getjordanshoes.com
Air-Jordan-J13 sneaker www.getjordanshoes.com
Air-Jordan-J14 sneaker www.getjordanshoes.com
Air-Jordan-J15 sneaker www.getjordanshoes.com
Air-Jordan-J16 sneaker www.getjordanshoes.com
Air-Jordan-J17 sneaker www.getjordanshoes.com
Air-Jordan-J18 sneaker www.getjordanshoes.com
Air-Jordan-J19 sneaker www.getjordanshoes.com
Air-Jordan-J20 sneaker www.getjordanshoes.com
Air-Jordan-J21 sneaker www.getjordanshoes.com
Air-Jordan-J22 sneaker www.getjordanshoes.com
Air-Jordan-J23 sneaker www.getjordanshoes.com
Air-Jordan Fusion sneaker www.getjordanshoes.com
Nike Air Max sneaker www.getjordanshoes.com
Air-Max-LTD sneaker www.getjordanshoes.com
Air-Max-TN sneaker www.getjordanshoes.com
Air-Max-1 sneaker www.getjordanshoes.com
Air-Max-89 sneaker www.getjordanshoes.com
Air-Max-90 sneaker www.getjordanshoes.com
Air-Max-95 sneaker www.getjordanshoes.com
Air-Max-360 sneaker www.getjordanshoes.com
Air-Max-2009 sneaker www.getjordanshoes.com
Nike-Shox-R3 sneaker www.getjordanshoes.com
Nike-Shox-R4 sneaker www.getjordanshoes.com
Nike-Shox-TL3 sneaker www.getjordanshoes.com
Nike-Shox-NZ sneaker www.getjordanshoes.com
Nike-Shox-OZ sneaker www.getjordanshoes.com
Gucci Low Top sneaker www.getjordanshoes.com
Gucci High Top sneaker www.getjordanshoes.com
Gucci Size 14 sneaker www.getjordanshoes.com
D&G sneaker www.getjordanshoes.com
Puma sneaker www.getjordanshoes.com
== 3 of 4 ==
Date: Sun, Nov 1 2009 8:30 am
From: getjordanshoes
└(^o^)┘ cheap Sneaker NIKE air jordanshoes,nike shoes,nike air max-
shangxing Trading Co.,Ltd
comAir Jordans Collezione sneaker www.getjordanshoes.com
Air-Jordan-J1 sneaker www.getjordanshoes.com
Air-Jordan-J2 sneaker www.getjordanshoes.com
Air-Jordan-J3 sneaker www.getjordanshoes.com
Air-Jordan-J4 sneaker www.getjordanshoes.com
Air-Jordan-J5 sneaker www.getjordanshoes.com
Air-Jordan-J6 sneaker www.getjordanshoes.com
Air-Jordan-J7 sneaker www.getjordanshoes.com
Air-Jordan-J8 sneaker www.getjordanshoes.com
Air-Jordan-J9 sneaker www.getjordanshoes.com
Air-Jordan-J10 sneaker www.getjordanshoes.com
Air-Jordan-J11 sneaker www.getjordanshoes.com
Air-Jordan-J12 sneaker www.getjordanshoes.com
Air-Jordan-J13 sneaker www.getjordanshoes.com
Air-Jordan-J14 sneaker www.getjordanshoes.com
Air-Jordan-J15 sneaker www.getjordanshoes.com
Air-Jordan-J16 sneaker www.getjordanshoes.com
Air-Jordan-J17 sneaker www.getjordanshoes.com
Air-Jordan-J18 sneaker www.getjordanshoes.com
Air-Jordan-J19 sneaker www.getjordanshoes.com
Air-Jordan-J20 sneaker www.getjordanshoes.com
Air-Jordan-J21 sneaker www.getjordanshoes.com
Air-Jordan-J22 sneaker www.getjordanshoes.com
Air-Jordan-J23 sneaker www.getjordanshoes.com
Air-Jordan Fusion sneaker www.getjordanshoes.com
Nike Air Max sneaker www.getjordanshoes.com
Air-Max-LTD sneaker www.getjordanshoes.com
Air-Max-TN sneaker www.getjordanshoes.com
Air-Max-1 sneaker www.getjordanshoes.com
Air-Max-89 sneaker www.getjordanshoes.com
Air-Max-90 sneaker www.getjordanshoes.com
Air-Max-95 sneaker www.getjordanshoes.com
Air-Max-360 sneaker www.getjordanshoes.com
Air-Max-2009 sneaker www.getjordanshoes.com
Nike-Shox-R3 sneaker www.getjordanshoes.com
Nike-Shox-R4 sneaker www.getjordanshoes.com
Nike-Shox-TL3 sneaker www.getjordanshoes.com
Nike-Shox-NZ sneaker www.getjordanshoes.com
Nike-Shox-OZ sneaker www.getjordanshoes.com
Gucci Low Top sneaker www.getjordanshoes.com
Gucci High Top sneaker www.getjordanshoes.com
Gucci Size 14 sneaker www.getjordanshoes.com
D&G sneaker www.getjordanshoes.com
Puma sneaker www.getjordanshoes.com
== 4 of 4 ==
Date: Sun, Nov 1 2009 8:31 am
From: getjordanshoes
└(^o^)┘ cheap Sneaker NIKE air jordanshoes,nike shoes,nike air max-
shangxing Trading Co.,Ltd
comAir Jordans Collezione sneaker www.getjordanshoes.com
Air-Jordan-J1 sneaker www.getjordanshoes.com
Air-Jordan-J2 sneaker www.getjordanshoes.com
Air-Jordan-J3 sneaker www.getjordanshoes.com
Air-Jordan-J4 sneaker www.getjordanshoes.com
Air-Jordan-J5 sneaker www.getjordanshoes.com
Air-Jordan-J6 sneaker www.getjordanshoes.com
Air-Jordan-J7 sneaker www.getjordanshoes.com
Air-Jordan-J8 sneaker www.getjordanshoes.com
Air-Jordan-J9 sneaker www.getjordanshoes.com
Air-Jordan-J10 sneaker www.getjordanshoes.com
Air-Jordan-J11 sneaker www.getjordanshoes.com
Air-Jordan-J12 sneaker www.getjordanshoes.com
Air-Jordan-J13 sneaker www.getjordanshoes.com
Air-Jordan-J14 sneaker www.getjordanshoes.com
Air-Jordan-J15 sneaker www.getjordanshoes.com
Air-Jordan-J16 sneaker www.getjordanshoes.com
Air-Jordan-J17 sneaker www.getjordanshoes.com
Air-Jordan-J18 sneaker www.getjordanshoes.com
Air-Jordan-J19 sneaker www.getjordanshoes.com
Air-Jordan-J20 sneaker www.getjordanshoes.com
Air-Jordan-J21 sneaker www.getjordanshoes.com
Air-Jordan-J22 sneaker www.getjordanshoes.com
Air-Jordan-J23 sneaker www.getjordanshoes.com
Air-Jordan Fusion sneaker www.getjordanshoes.com
Nike Air Max sneaker www.getjordanshoes.com
Air-Max-LTD sneaker www.getjordanshoes.com
Air-Max-TN sneaker www.getjordanshoes.com
Air-Max-1 sneaker www.getjordanshoes.com
Air-Max-89 sneaker www.getjordanshoes.com
Air-Max-90 sneaker www.getjordanshoes.com
Air-Max-95 sneaker www.getjordanshoes.com
Air-Max-360 sneaker www.getjordanshoes.com
Air-Max-2009 sneaker www.getjordanshoes.com
Nike-Shox-R3 sneaker www.getjordanshoes.com
Nike-Shox-R4 sneaker www.getjordanshoes.com
Nike-Shox-TL3 sneaker www.getjordanshoes.com
Nike-Shox-NZ sneaker www.getjordanshoes.com
Nike-Shox-OZ sneaker www.getjordanshoes.com
Gucci Low Top sneaker www.getjordanshoes.com
Gucci High Top sneaker www.getjordanshoes.com
Gucci Size 14 sneaker www.getjordanshoes.com
D&G sneaker www.getjordanshoes.com
Puma sneaker www.getjordanshoes.com
==============================================================================
TOPIC: Musatov's 'Mode/Code' Primary method call
http://groups.google.com/group/comp.lang.c++/t/8d3be3102f34d822?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Nov 1 2009 1:46 am
From: flowbase
On Oct 31, 5:18 pm, John G Harris <j...@nospam.demon.co.uk> wrote:
> On Sat, 31 Oct 2009 at 13:15:18, in comp.lang.javascript, Musatov wrote:
> ><mode>long int SomeFunction();@http://www.meami.org/
> ><mode>@http://www.meami.org/
> ><mode> CallingFunction()@http://www.meami.org/
> ><mode>{@http://www.meami.org/
> ><mode> long int test1;@http://www.meami.org/
> ><mode> register test2;@http://www.meami.org/
> ><mode>@http://www.meami.org/
> ><mode> test1 = SomeFunction();@http://www.meami.org/
> ><mode> if (test1 > 0)@http://www.meami.org/
> ><mode> test2 = 0;@http://www.meami.org/
> ><mode> else@http://www.meami.org/
> ><mode> test2 = OtherFunction();@http://www.meami.org/
> ><mode>@http://www.meami.org/
> ><mode> return test2;@http://www.meami.org/
> ><mode>}@http://www.meami.org/
> ><mode>@http://www.meami.org/
> ><mode>@http://www.meami.org/
> ><mode>[[struct]]</code>) allow related data elements to be combined
>
> <snip>
>
> Does anyone know what language this article is written in ?
>
> And why it's being posted to plain-text newsgroups ?
>
> John
> --
> John Harris
It's a proprietary language I am developing and planning to donate
when appropriate.
Check out http://meami.org/hello.html
thanks,
Martin
==============================================================================
TOPIC: o(≧v≦)o~~ High quality discount UGG shoes&others shoes in website www.
uggonfoot.com
http://groups.google.com/group/comp.lang.c++/t/9dda92e210d94ed8?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, Nov 1 2009 1:47 am
From: getjordanshoes
High quality discount UGG Shoes
High quality discount UGG 5118
High quality discount UGG 5728
High quality discount UGG 5163
High quality discount UGG 5225
High quality discount UGG 5230
High quality discount UGG 5245
High quality discount UGG 5325
High quality discount UGG 5359
High quality discount UGG 5815
High quality discount UGG 5816
High quality discount UGG 5818
High quality discount UGG 5819
High quality discount UGG 5825
High quality discount UGG 5854
== 2 of 3 ==
Date: Sun, Nov 1 2009 1:49 am
From: getjordanshoes
High quality discount UGG Shoes
High quality discount UGG 5118
High quality discount UGG 5728
High quality discount UGG 5163
High quality discount UGG 5225
High quality discount UGG 5230
High quality discount UGG 5245
High quality discount UGG 5325
High quality discount UGG 5359
High quality discount UGG 5815
High quality discount UGG 5816
High quality discount UGG 5818
High quality discount UGG 5819
High quality discount UGG 5825
High quality discount UGG 5854
== 3 of 3 ==
Date: Sun, Nov 1 2009 1:50 am
From: getjordanshoes
High quality discount UGG Shoes
High quality discount UGG 5118
High quality discount UGG 5728
High quality discount UGG 5163
High quality discount UGG 5225
High quality discount UGG 5230
High quality discount UGG 5245
High quality discount UGG 5325
High quality discount UGG 5359
High quality discount UGG 5815
High quality discount UGG 5816
High quality discount UGG 5818
High quality discount UGG 5819
High quality discount UGG 5825
High quality discount UGG 5854
==============================================================================
TOPIC: Differences between default initialisation
http://groups.google.com/group/comp.lang.c++/t/b165fb4135563758?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, Nov 1 2009 2:48 am
From: Angus
Hello
In C++ global and static variables (primitive) are zero initialised.
But member and local variables are not. Is this standard for other
languages? Why?
Angus
== 2 of 3 ==
Date: Sun, Nov 1 2009 6:43 am
From: "Bo Persson"
Angus wrote:
> Hello
>
> In C++ global and static variables (primitive) are zero initialised.
> But member and local variables are not. Is this standard for other
> languages? Why?
>
> Angus
This is all inherited from the C language.
Old C code, compiled as C++, should behave the way it used to -
especially performance-wise.
Bo Persson
== 3 of 3 ==
Date: Sun, Nov 1 2009 6:49 am
From: Victor Bazarov
Angus wrote:
> In C++ global and static variables (primitive) are zero initialised.
> But member and local variables are not. Is this standard for other
> languages?
How TF should we know? Ask in "other languages" newsgroups.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
==============================================================================
TOPIC: c++ build question
http://groups.google.com/group/comp.lang.c++/t/92a3f21ecdea9375?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, Nov 1 2009 3:02 am
From: Angus
Hello
I hope this is an ok topic for this forum.
When I compile a C++ file I can specify on the command line a macro.
In my compiler it can be eg /D "_DEBUG". But on my command line I can
also specify /Od - which disables optimisations. Are they the same
thing?
I can also use #define _DEBUG in my source file. Does that have the
same effect as the command line /D "DEBUG"?
A
== 2 of 3 ==
Date: Sun, Nov 1 2009 3:09 am
From: Rolf Magnus
Angus wrote:
> Hello
>
> I hope this is an ok topic for this forum.
>
> When I compile a C++ file I can specify on the command line a macro.
> In my compiler it can be eg /D "_DEBUG". But on my command line I can
> also specify /Od - which disables optimisations. Are they the same
> thing?
Not sure what you're asking here. Why would you suspect that setting the
compiler optimiziation level is the same as defining a macro?
> I can also use #define _DEBUG in my source file. Does that have the
> same effect as the command line /D "DEBUG"?
I would expect that. It might depend on the compiler though. The compiler's
manual should tell you more.
== 3 of 3 ==
Date: Sun, Nov 1 2009 7:40 am
From: legalize+jeeves@mail.xmission.com (Richard)
[Please do not mail me a copy of your followup]
Angus <anguscomber@gmail.com> spake the secret code
<14518834-6abe-462a-b76d-fb9d1d9478e9@t2g2000yqn.googlegroups.com> thusly:
>When I compile a C++ file I can specify on the command line a macro.
>In my compiler it can be eg /D "_DEBUG". But on my command line I can
>also specify /Od - which disables optimisations. Are they the same
>thing?
Nope. One defines a macro (there is nothing special about "_DEBUG";
it is simply a convention). The other changes how optimizations are
applied to the generated code.
>I can also use #define _DEBUG in my source file. Does that have the
>same effect as the command line /D "DEBUG"?
Yes, as long as you define the macro at the beginning of the source
file before anything else is included that depends on the macro.
The only difference between the two is that the command-line switch
sets the macro before the file is processed whereas #define defines
the macro at the location of the #define. Things that might depend on
the macro before the #define are not affected by it.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
==============================================================================
TOPIC: Portable library to measure time
http://groups.google.com/group/comp.lang.c++/t/9215c47c4398d6d8?hl=en
==============================================================================
== 1 of 5 ==
Date: Sun, Nov 1 2009 6:42 am
From: Julek
Is there any simple library that can return a systemtime in a
resolution of max. 10ms, working on both Windows XP and modern Linux?
time() works on both but has a resolution of 1s. There is
GetSystsmTime on Windows with 10ms resolution, there are probably also
some functions for Linux - but maybe there is some library works on
both these OSes?
== 2 of 5 ==
Date: Sun, Nov 1 2009 6:57 am
From: Sam
Julek writes:
> Is there any simple library that can return a systemtime in a
> resolution of max. 10ms, working on both Windows XP and modern Linux?
> time() works on both but has a resolution of 1s. There is
> GetSystsmTime on Windows with 10ms resolution, there are probably also
> some functions for Linux - but maybe there is some library works on
> both these OSes?
gettimeofday().
== 3 of 5 ==
Date: Sun, Nov 1 2009 6:59 am
From: Victor Bazarov
Julek wrote:
> Is there any simple library that can return a systemtime in a
> resolution of max. 10ms, working on both Windows XP and modern Linux?
Nothing can be better than the underlying OS unless you have a special
way of going to the hardware that the OS doesn't do. So, dig into the
OS APIs and find out.
> time() works on both but has a resolution of 1s. There is
> GetSystsmTime on Windows with 10ms resolution, there are probably also
> some functions for Linux - but maybe there is some library works on
> both these OSes?
Maybe or maybe not. Why don't you write one?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
== 4 of 5 ==
Date: Sun, Nov 1 2009 7:45 am
From: "BGB / cr88192"
"Julek" <julekmen@go2.pl> wrote in message
news:90319dc1-1978-46f1-81f5-37937305da3e@z41g2000yqz.googlegroups.com...
> Is there any simple library that can return a systemtime in a
> resolution of max. 10ms, working on both Windows XP and modern Linux?
> time() works on both but has a resolution of 1s. There is
> GetSystsmTime on Windows with 10ms resolution, there are probably also
> some functions for Linux - but maybe there is some library works on
> both these OSes?
don't use a library for what you can trivially do yourself...
using libs in this case does little more than create external dependencies
for which any potential users of said code may be forced to deal with later.
a lib is good if it is known to be commonly or near universally available,
is already in use of a project, or represents a non-trivial amount of work,
but otherwise I feel use of libs is ill-advised, as it may create
portability issues (and people trying to dig around online to find "X
obscure library no one has heard of", or figuring out how to do likewise by
looking at the code and figuring out what the API calls do...)..
now, maybe of some help:
#ifdef linux
...
gettimeofday(...);
...
No comments:
Post a Comment