Home Bug Reports

IceUtil::Time documentation

n2503vn2503v Member Alex MakarenkoOrganization: ACFR, University of SydneyProject: Orca ✭✭✭
Ice-2.1.2, C++, Linux

from Ice Manual, p. 643
...
operator double
This operator converts a Time object into a double value that expresses
time in seconds:
IceUtil::Time t = IceUtil::Time::milliSeconds(500);
double d = t;
cerr << "Duration: " << d << " seconds" << endl;
...

by looking at include/IceUtil/Time.h it seems that operator= was replace by these functions:
double toSecondsDouble() const;
double toMilliSecondsDouble() const;
double toMicroSecondsDouble() const;

I guess the manual should be updated.
cheers, alex

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Thanks for the bug report, we'll fix this.

    Cheers,

    Michi.
Sign In or Register to comment.