Results 1 to 2 of 2

Thread: Zero value for IceUtil::Time

  1. #1
    catalin is offline Registered User
    Join Date
    Jul 2003
    Location
    Oslo, Norway
    Posts
    57

    Zero value for IceUtil::Time

    Hi!

    I sometimes want to initialize an IceUtil::Time variable to some "zero" value in the constructor of a class, so that later on I know if I am doing something for the first time or not.

    How can this be done, and does the timeVariable == 0 expression have any meaning?

    Thanks,
    Catalin

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Just use the default constructor, it initializes to zero. Like:

    timeVariable = IceUtil::Time();

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. IceUtil::Time documentation
    By n2503v in forum Bug Reports
    Replies: 1
    Last Post: 10-23-2005, 05:03 PM
  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
  •