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 static void sleep(
int msec);
54 void setValue(
const double sec);
55 void setValue(
const int32_t sec,
const long usec);
56 void setValue(
const struct timeval *
const tv);
57 void setMsecValue(
const unsigned long msec);
58 double getValue(
void)
const;
59 void getValue(time_t & sec,
long & usec)
const;
60 void getValue(
struct timeval * tv)
const;
61 unsigned long getMsecValue(
void)
const;
62 SbString format(
const char *
const fmt =
"%S.%i")
const;
63 SbString formatDate(
const char *
const fmt = NULL)
const;
64 SbBool parsedate(
const char *
const date);
69 SbTime operator-(
void)
const;
70 friend COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
71 friend COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
72 friend COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
73 SbTime & operator *=(
const double s);
74 SbTime & operator /=(
const double s);
75 double operator /(
const SbTime & tm)
const;
77 int operator ==(
const SbTime & tm)
const;
78 int 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;
82 SbBool operator >=(
const SbTime & tm)
const;
84 void print(FILE * fp)
const;
88 void addToString(
SbString & str,
const double val)
const;
100 #ifdef SBTIME_UNDEF_MAX 101 #define max(a,b) (((a) > (b)) ? (a) : (b)) 102 #undef SBTIME_UNDEF_MAX 103 #endif // SBTIME_UNDEF_MAX 105 #endif // !COIN_SBTIME_H SbVec2d operator*(const SbVec2d &v, double d)
Definition: SbVec2d.h:82
SbVec2d operator-(const SbVec2d &v1, const SbVec2d &v2)
Definition: SbVec2d.h:99
The SbTime class instances represents time values.SbTime is a convenient way of doing system independ...
Definition: SbTime.h:41
SbVec2d operator/(const SbVec2d &v, double d)
Definition: SbVec2d.h:90
SbVec2d operator+(const SbVec2d &v1, const SbVec2d &v2)
Definition: SbVec2d.h:95
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:42