29 #include <Inventor/system/inttypes.h>
30 #include <Inventor/SbBasic.h>
31 #include <Inventor/SbString.h>
36 #define SBTIME_UNDEF_MAX
45 SbTime(
const int32_t sec,
const long usec);
46 SbTime(
const struct timeval *
const tv);
47 static SbTime getTimeOfDay(
void);
48 void setToTimeOfDay(
void);
52 static SbTime maxTime(
void);
53 void setValue(
const double sec);
54 void setValue(
const int32_t sec,
const long usec);
55 void setValue(
const struct timeval *
const tv);
56 void setMsecValue(
const unsigned long msec);
57 double getValue(
void)
const;
58 void getValue(time_t & sec,
long & usec)
const;
59 void getValue(
struct timeval * tv)
const;
60 unsigned long getMsecValue(
void)
const;
61 SbString format(
const char *
const fmt =
"%S.%i")
const;
62 SbString formatDate(
const char *
const fmt = NULL)
const;
63 SbBool parsedate(
const char *
const date);
68 SbTime operator-(
void)
const;
69 friend COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
70 friend COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
71 friend COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
72 SbTime & operator *=(
const double s);
73 SbTime & operator /=(
const double s);
74 double operator /(
const SbTime & tm)
const;
76 int operator ==(
const SbTime & tm)
const;
77 int operator !=(
const SbTime & tm)
const;
78 SbBool operator <(
const SbTime & tm)
const;
79 SbBool operator >(
const SbTime & tm)
const;
80 SbBool operator <=(
const SbTime & tm)
const;
81 SbBool operator >=(
const SbTime & tm)
const;
83 void print(FILE * fp)
const;
87 void addToString(
SbString & str,
const double val)
const;
92 COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
93 COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
94 COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
99 #ifdef SBTIME_UNDEF_MAX
100 #define max(a,b) (((a) > (b)) ? (a) : (b))
101 #undef SBTIME_UNDEF_MAX
102 #endif // SBTIME_UNDEF_MAX
104 #endif // !COIN_SBTIME_H
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Thu Aug 15 2013 for Coin by Doxygen. 1.8.4