Oh, that could be it haha
Like I said before, I just started today
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
Maybe I'll have to try my hand at this. Been working with Java for about a year and did some basic Python stuff before that. Haven't done anything with timers though, other than sleeping/waiting.
Weazel, I think my professors would stab me if I handed in a program that looked like that. Readability, documentation, meaningful variables and such are high on their list. But wow. I am going to really have to take a look at that when I have more time. Looks like a very interesting approach.
Thats all you'll need to take a timeCode:System.currentTimeMillis()
One at the beginning and one at the end set in variables. Subtract the first variable from the second and you have your time in Milliseconds
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
No, it's more for the best code. I just was trying my hand at some Java. So, it ended up running quite quickly
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
Au Contraire Indy, it is very much a do-something machine. It works as described. Heres another one that counts from 0000 to 9999, and prints the numbers.
Code:+T+++++++++++++++++++++++++++++++++++++++++++++++> ++H++++++++++++++++++++++++++++++++++++++++++++++> +++I+++++++++++++++++++++++++++++++++++++++++++++> ++++S++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++< ------P----------------------------------------------------[ +++++++R+++++++++++++++++++C++++++++++++++++++++++++++++++++ <-------O-----------------O----------------------------------[ +++++++++G+++++++++++++++U++++++++++++++++++++++++++++++++++ <---------R-------------N------------------------------------ [++++++++++A+++++++++++T+++++++++++++++++++++++++++++++++++++ <-----------M---------S-------------------------------------- [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>.<.<.<.>>>>.<<<< ---------------T----------S----T---------S------------------- ]+++++++++++++O++++++++++T++++++H+++++++R++++++++++++> ----------------9-------N--------E-----E--------------------- ]++++++++++++++9+++++++I++++++++++++++B+++++++++++++> --------------9---D---R--------------M----------------------- ]++++++++++++9+++N+++P++++++++++++++U++++++++++++++++> ----------------A------------------N-----------------------]
And by the way, I think there is a +rep in order for whoever figures out which language my last two programs were written in...
But I think I'll stop now, I don't want to hijack this thread too much
Last edited by weazel6265; 04-06-2008 at 10:49 AM. Reason: Had to change code so it isn't interpreted as HTML tags
I'm not creative enough to think of a funny sig. Just quietly laugh to yourself and I'll be happy.
Is it assembly?
Have you checked out the front page lately?
Projects:
Moe's Tavern | Sponsored by: Mimo Monitors, Crucial, Thermaltake
Book Of Knowledge
Well not exactly true. It's too fast for the resolution of the timer that you are using, so in theory there are some digits that are less than 10^-3 in cumulative value.
I wonder if the x86 architecture has programmable hardware timers that can be configured like the PIC does...