KuntzBrewing
Well-Known Member
I've got a rather long program. I'm reading adc values and using 2 ds18b20s
I've got my code for that wirrten. I'm using an ATmega328p chip, coding in c on atmel studio 6.
My program will have time dependent outputs, when to switch from one mode to another, displaying a countdown, and such. I want to countdown every second. I want to know how many milliseconds my code takes to go from cycle to cycle so I can create a delay that accurately makes 1 second one second(1000ms)
I don't seem to have access to time.h
I also can't simulate my code, because I'm using sensors that use inputs that cannot be simulated.
I'm aware that time.h has a function where in the beginning of the loop you call a start count function and at the end a stopcount function then compare the two.
Are there any other ways, or do you have a way to download the .h file
I've got my code for that wirrten. I'm using an ATmega328p chip, coding in c on atmel studio 6.
My program will have time dependent outputs, when to switch from one mode to another, displaying a countdown, and such. I want to countdown every second. I want to know how many milliseconds my code takes to go from cycle to cycle so I can create a delay that accurately makes 1 second one second(1000ms)
I don't seem to have access to time.h
I also can't simulate my code, because I'm using sensors that use inputs that cannot be simulated.
I'm aware that time.h has a function where in the beginning of the loop you call a start count function and at the end a stopcount function then compare the two.
Are there any other ways, or do you have a way to download the .h file