Chat on IRC |
Problem w/ Timeing
Posted by Faisal [send private reply] at April 26, 2002, 09:15:46 PM
Is there a way in C++ to put time in your program while its running? I want to be able to have variables that should realy on time, to change while the game is going.
Posted by CodeRed [send private reply] at April 26, 2002, 09:45:46 PM
time.h
Posted by Faisal [send private reply] at April 26, 2002, 10:23:58 PM
how shall i use it. (was my real question)
Posted by CodeRed [send private reply] at April 26, 2002, 10:26:43 PM
thou shalt RTFM
Posted by Faisal [send private reply] at April 26, 2002, 10:34:59 PM
rtfm???
Posted by CodeRed [send private reply] at April 26, 2002, 10:52:10 PM
I'm not going to dignify that with a response
Posted by Faisal [send private reply] at April 26, 2002, 11:05:35 PM
i dont have a manual if thats what it means
Posted by Faisal [send private reply] at April 26, 2002, 11:07:12 PM
anyways, that doesnt help... i want it to go while i am doing other things. THAT ISNT IN THE MANUAL U U U .... nm
Posted by Faisal [send private reply] at April 26, 2002, 11:07:38 PM
Like, time while other things are happening
Posted by CodeRed [send private reply] at April 26, 2002, 11:14:59 PM
when the process starts, get the current time. When the pocess finishes, get the current time. t2 - t1 = total time to complete process. Is this what you need?
Posted by CodeRed [send private reply] at April 26, 2002, 11:16:40 PM
Most compilers have thorough documentation (for the language as well as the compiler)
Posted by gian [send private reply] at April 27, 2002, 01:59:49 AM
Faisal, you may want to investigate threads then...
Posted by Faisal [send private reply] at April 27, 2002, 08:52:07 AM
Yeah, I was trying to do numb - numb2 = total time..
ill see what to do.
Posted by vikram_1982 [send private reply] at April 29, 2002, 05:59:20 AM
Check the thread with the topic C++ Project,Faisal. :)
Register as a new user | ||||||||||||||||