summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h
index 21b3904faa4..355d6e75e48 100644
--- a/sql/structs.h
+++ b/sql/structs.h
@@ -831,4 +831,20 @@ public:
};
+class Timeval: public timeval
+{
+public:
+ Timeval(my_time_t sec, ulong usec)
+ {
+ tv_sec= sec;
+ tv_usec= usec;
+ }
+ Timeval &trunc(uint dec)
+ {
+ my_timeval_trunc(this, dec);
+ return *this;
+ }
+};
+
+
#endif /* STRUCTS_INCLUDED */