miteigi-san 24 Newbie Poster

I just want to suggest that Daniweb add a 'save as draft' option when creating new posts.

I think it would be helpful to those who take a lot of time writing their posts, and to those who stop at the middle of writing to check ideas, but want to continue writing their post later on...

TrustyTony commented: Quite good idea +0
miteigi-san 24 Newbie Poster

Im only a beginner so I didn't know about that, but thanks anyway, at least now i know something like that existed. makes life more easier = ).

Thank you! at least someone noticed my post and helped me with it = ).

Nick Evan commented: That's the spirit! +12
miteigi-san 24 Newbie Poster

I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me...

Here's what i would like to know:
1] what does the value returned by clock() mean?
---system clock ticks? if yes, what exactly is system clock ticks
compared to wall clock/ wristwatch clock?


2] what does the value returned by CLOCKS_PER_SEC mean?
---is its value always 1000? and is it how much the clock() value increases in a second?


3] how does these two codes differ in how they function?
---from http://www.daniweb.com/forums/thread120452.html#

if (clock() > FiveSecondsLater)
      {
                // Do whatever it is you want to do.
      }

and this one

void wait (float seconds)
      {
      clock_t EndTime = seconds * CLOCKS_PER_SEC;
                while (EndTime > clock())
                {
                // this will loop until clock() equals EndTime
                }
      }

---i mean, aren't they the same wait function?


4] does the first code need a loop(outside) for it to become a wait function? and if yes, what condition shall i put to it?

im trying to make dots appear in succession
and im using codeblocks

from this code...

/* clock example: countdown */
#include <stdio.h>
#include <time.h>
  int n;
void wait ( int seconds )
{
  clock_t endwait;
  endwait = clock () + seconds * …
Nick Evan commented: Excellent first post! +12