how many seconds?
-
(message found on a sharing file web site) "Download in NaN seconds" mmhh... maybe I try to download it tomorrow. :confused: I'm sorry that I have not the code, but you can try to guess it. Tommy
At least it doesn't produce an error or crash when trying to parse what's NaN...
-
(message found on a sharing file web site) "Download in NaN seconds" mmhh... maybe I try to download it tomorrow. :confused: I'm sorry that I have not the code, but you can try to guess it. Tommy
Dealing with time produces funny horros, like the following one (found when I was in my former company):
TotalSeconds = GetTotalSeconds();
Seconds = 0;
Minutes = 0;
Hours = 0;for (i=0; i<TotalSeconds; i++)
{
Seconds++;
if ( Seconds == 60)
{
Seconds = 0;
Minutes++;
if (Minutes == 60)
{
Minutes = 0;
Hours++:
}
}
}:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Dealing with time produces funny horros, like the following one (found when I was in my former company):
TotalSeconds = GetTotalSeconds();
Seconds = 0;
Minutes = 0;
Hours = 0;for (i=0; i<TotalSeconds; i++)
{
Seconds++;
if ( Seconds == 60)
{
Seconds = 0;
Minutes++;
if (Minutes == 60)
{
Minutes = 0;
Hours++:
}
}
}:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]CPallini wrote:
long TotalMilliSeconds = gettime(); // number of milliseconds since September 1st, 1970.
Ooo, I like that. Did your company receive a bug report about that "clock application" they wrote (I added the relevant code above in
Red
)? SPR: #8327 PROBLEM DESCRIPTION: My clock application takes 100% CPU and doesn't update every second. LIKELY CAUSE:long timespan = gettime(); **// number of milliseconds since September 1st, 1970.**
SOLUTION: Your clock is running through 1,199,836,800,000 (1.2 trillion) iterations per second, you dumba**. -
Dealing with time produces funny horros, like the following one (found when I was in my former company):
TotalSeconds = GetTotalSeconds();
Seconds = 0;
Minutes = 0;
Hours = 0;for (i=0; i<TotalSeconds; i++)
{
Seconds++;
if ( Seconds == 60)
{
Seconds = 0;
Minutes++;
if (Minutes == 60)
{
Minutes = 0;
Hours++:
}
}
}:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
CPallini wrote:
long TotalMilliSeconds = gettime(); // number of milliseconds since September 1st, 1970.
Ooo, I like that. Did your company receive a bug report about that "clock application" they wrote (I added the relevant code above in
Red
)? SPR: #8327 PROBLEM DESCRIPTION: My clock application takes 100% CPU and doesn't update every second. LIKELY CAUSE:long timespan = gettime(); **// number of milliseconds since September 1st, 1970.**
SOLUTION: Your clock is running through 1,199,836,800,000 (1.2 trillion) iterations per second, you dumba**.:-D :laugh: :-D Sad to say (I don't like to shoot to the red cross) the authors came from
VB
world. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Indeed it is working. The horror application is still alive. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
(message found on a sharing file web site) "Download in NaN seconds" mmhh... maybe I try to download it tomorrow. :confused: I'm sorry that I have not the code, but you can try to guess it. Tommy
It's so fast, the time is Not even a Number! :D (reminds me of that _other_ guy...)
-
Indeed it is working. The horror application is still alive. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]