sensorfw: datatypes/utils.h Source File

sensorfw

utils.h
Go to the documentation of this file.
1
28 #ifndef UTILS_H
29 #define UTILS_H
30 #include <sys/time.h>
31
35 class Utils
36 {
37 public:
43 static quint64 getTimeStamp();
44
50 static quint64 getTimeStamp(const struct timeval*);
51 };
52
53 #endif // UTILS_H
Utils
Collection of static utility functions.
Definition: utils.h:36
Utils::getTimeStamp
static quint64 getTimeStamp(const struct timeval *)
Convert given timeval struct into microsecs.
Utils::getTimeStamp
static quint64 getTimeStamp()
Get timestamp of monotonic clock in microsecs.