Results 1 to 2 of 2

Thread: IceUtil::Time documentation

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    Post IceUtil::Time documentation

    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
    Alex Makarenko
    Marathon Robotics
    project: multi-robot systems

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Thanks for the bug report, we'll fix this.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using IceUtil::Time in a Slice definition
    By sidney in forum Help Center
    Replies: 2
    Last Post: 03-19-2010, 04:33 AM
  2. Replies: 4
    Last Post: 08-19-2009, 01:21 PM
  3. returned value of IceUtil::Time::now()
    By yongsheng in forum Help Center
    Replies: 4
    Last Post: 03-09-2007, 03:07 AM
  4. Zero value for IceUtil::Time
    By catalin in forum Help Center
    Replies: 1
    Last Post: 10-05-2004, 07:28 AM
  5. Crash in IceUtil::Time caused by VC6 bug
    By kssreeram in forum Help Center
    Replies: 3
    Last Post: 04-22-2004, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •