38 #include <Inventor/system/inttypes.h> 39 #include <Inventor/SbBasic.h> 40 #include <Inventor/SbString.h> 45 #define SBTIME_UNDEF_MAX 54 SbTime(
const int32_t sec,
const long usec);
55 SbTime(
const struct timeval *
const tv);
56 static SbTime getTimeOfDay(
void);
57 void setToTimeOfDay(
void);
61 static SbTime maxTime(
void);
62 static void sleep(
int msec);
63 void setValue(
const double sec);
64 void setValue(
const int32_t sec,
const long usec);
65 void setValue(
const struct timeval *
const tv);
66 void setMsecValue(
const unsigned long msec);
67 double getValue(
void)
const;
68 void getValue(time_t & sec,
long & usec)
const;
69 void getValue(
struct timeval * tv)
const;
70 unsigned long getMsecValue(
void)
const;
71 SbString format(
const char *
const fmt =
"%S.%i")
const;
72 SbString formatDate(
const char *
const fmt = NULL)
const;
73 SbBool parsedate(
const char *
const date);
78 SbTime operator-(
void)
const;
79 friend COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
80 friend COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
81 friend COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
82 SbTime & operator *=(
const double s);
83 SbTime & operator /=(
const double s);
84 double operator /(
const SbTime & tm)
const;
86 int operator ==(
const SbTime & tm)
const;
87 int operator !=(
const SbTime & tm)
const;
88 SbBool operator <(
const SbTime & tm)
const;
89 SbBool operator >(
const SbTime & tm)
const;
90 SbBool operator <=(
const SbTime & tm)
const;
91 SbBool operator >=(
const SbTime & tm)
const;
93 void print(FILE * fp)
const;
97 void addToString(
SbString & str,
const double val)
const;
109 #ifdef SBTIME_UNDEF_MAX 110 #define max(a,b) (((a) > (b)) ? (a) : (b)) 111 #undef SBTIME_UNDEF_MAX 112 #endif // SBTIME_UNDEF_MAX 114 #endif // !COIN_SBTIME_H SbVec2s operator-(const SbVec2s &v1, const SbVec2s &v2)
The SbTime class instances represents time values.
Definition: SbTime.h:50
SbVec2s operator/(const SbVec2s &v, int d)
SbVec2s operator*(const SbVec2s &v, int d)
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:52
SbVec2s operator+(const SbVec2s &v1, const SbVec2s &v2)