![]() |
|
#1
|
|||
|
|||
problem printing a clock_t valueHi,
Strange, I'm having trouble with this in Fedora 6 gcc but not in mingw gcc: CPP / C++ / C Code:
gcc -Wall -W -pedantic clock_t_x1.c -o clock_t_x1 I get a 2 places worth of decimal value in mingw and always this FC6 gcc: Code:
Howard--; |
|||
|
#2
|
||||
|
||||
Re: problem printing a clock_t valueThat works for me with VC++ 6.0
Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: problem printing a clock_t valueHmm , yes that is quite a difference: 1,000 and 1,000,000.
This should at least get at the 'seconds' though , and still I get zero?: CPP / C++ / C Code:
|
|
#4
|
||||
|
||||
Re: problem printing a clock_t valueFrom what I can find through google, that gcc version is NOT broken, but there has been a change to the CLOCKS_PER_SEC value for ansi compliance. (see comments in time.h)
I'm not sure what option may need to be toggled for the old value. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: problem printing a clock_t valueAhhh! Thanks for the help but I think I found a different answer! (for now):
CPP / C++ / C Code:
Code:
Howard(:-); |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem printing pictures | stupidcomputer | Computer Software Forum - Windows | 1 | 15-Oct-2007 12:22 |
| Runtime Problem involving "printf" in C Program | supamakia | C Programming Language | 2 | 09-Oct-2005 11:09 |
| Printing Problem! | Salchester | C++ Forum | 3 | 07-Sep-2005 18:13 |
| problem printing output | iamsodumb | C++ Forum | 4 | 10-Mar-2005 14:19 |
| Printing problem | Frandy | MS Visual C++ / MFC Forum | 1 | 16-Feb-2005 14:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The