Starting with Python 3.3 you now have access to a high resolution time counter (nanoseconds and better).

Member Avatar
Member Avatar
+6 forum 2

hi i took my gpu out of my pc to check it because i was gettin driver not responding pop ups, and when ive put it back in my pc comes on for 10 seconds then the power cuts, ive even tried without the graphic card an it still cuts so im confused specs: radeon hd 4870 x2 Gigabyte GA-MA790FXT-UD5P motherboard 4gb DDR 3 core i7 920ghz 600w power supply

Member Avatar
Member Avatar
+0 forum 6

Here is my code... [CODE]function buildTimer(second,minute,hour,day,month) { if(getCookie('day') == "") { setCookie("month",month,1095); setCookie("day",day,1095); setCookie("hour",hour,1095); setCookie("minute",minute,1095); setCookie("second",second,1095); } var d = new Date(); var curr_month = d.getMonth(); if(month >= curr_month) { year = d.getFullYear(); } else { year = d.getFullYear()+1; } var Bday = new Date(year, month, day, hour, minute, second, 0); var Today = new Date(); var totaldays = daysBetween(Today, Bday); var time = (totaldays*86400) + (hour*3600) + (minute*60) + second; alert(time); CreateTimer(time); }[/CODE] AND here is the function that I used... [CODE]function daysBetween(date1, date2) { // The number of milliseconds in one day var ONE_DAY = 1000 * 60 …

Member Avatar
Member Avatar
+0 forum 1

Hello! I have coded a compression technique and I am having trouble in measuring the speed of it. I tried to generate log of start time and end time, but compression time of same file varies a lot under windows. That may be happening because other processes would be consuming resources my program could me in blocked mode for a while. Can anyone please suggest me a way to measure the execution time of my program minus the waiting time when it was blocked? I can think of three possible ways (1) Setup a minimal Linux and run my program …

Member Avatar
Member Avatar
+0 forum 4

Hello~ I'm having a little problem on how to make a timer which include minutes and seconds. The design of the form goes like this: [url]http://i.imgur.com/lh1pk.png[/url] Another condition here is when the timer goes down, the interval gets faster. Please help me~

Member Avatar
Member Avatar
+0 forum 4

The code demonstrates running program limitted time by following going over endtime expressed in seconds since midnight, so might fail for playing just midnight (add check that endtime is less than 24*60*60 if you want to be sure). Exciting action :) of the program is that it shows remaining time in position moving left and right as you push left and right arrow keys.

Member Avatar
+0 forum 0

I am converting seconds to minutes, hours, days. For some reason I have an issue with the days not calculating when running the program. The 'if' statement seems completely ignored by the program. I think this may be caused by the warning I get. Any help would be greatly appreciated in explaining the warning and my current issue: Warning: Constant is long in function main() [CODE] #include <iostream.h> //using namespace std; int main() { // Constants for Conversion int seconds, minute, hour; double day; cout << "Enter the number of seconds: "; cin >> seconds; day = seconds / 86400; …

Member Avatar
Member Avatar
+0 forum 18

Hello. What I need is very simple in concept, although I am the worst in the world (not really) at JavaScript. I basically want to make a displayed image change, no special effects, every set amount of seconds. I also want to have a forward and backward image button to let you immediately switch while still continuing the timed changing. I would really love some help! P.S. It would be helpful to have an external script to shorten my page's code. THANKS! -Keavon

Member Avatar
+0 forum 0

The End.