07-28-06 12:24 AM
Mihir wrote On 07/27/06 14:23,:
> 1 >> #ifdef LINUX_OS
> 2 >> if (_TICKSPERSEC < 1000)
> 3 >> time_elapsed = (time_elapsed * (1000 / _TICKSPERSEC));
> 4 >> else
> 5 >> time_elapsed = (time_elapsed /(_TICKSPERSEC / 1000));
>
> On this block i am getting error on 3rd line and 5th line.
This isn't the same code you posted in the first message.
Let me make a suggestion: Instead of posting approximations
plus explanations, try to construct a short, complete program
that demonstrates the problem -- fifteen or twenty lines ought
to do it, I'd think. The post that entire chunk of code EXACTLY
as it stands: cut and paste, don't re-type. That way, we'll
be debugging the actual code and not a series of approximations.
> The exact error massege is "error: invalid operation to binary *" and
> also for the 5th line
> "error: invalid operation to binary /"
Are these the EXACT error messages? I doubt it ... Again,
learn to cut and paste so as to avoid introducing inaccuracies.
--
Eric.Sosman@sun.com
[ Post a follow-up to this message ]
|