Scarab
Project 8 C++ Utility Library
|
#include "scarab_api.hh"
#include <cstdint>
#include <string>
#include <sys/time.h>
#include <time.h>
Go to the source code of this file.
Namespaces | |
scarab | |
Macros | |
#define | NSEC_PER_SEC 1000000000 |
#define | SEC_PER_NSEC 1.e-9 |
Typedefs | |
typedef uint64_t | time_nsec_type |
Functions | |
SCARAB_API bool | operator== (const timespec &lhs, const timespec &rhs) |
SCARAB_API bool | operator< (const timespec &lhs, const timespec &rhs) |
SCARAB_API int | get_time_monotonic (struct timespec *time) |
SCARAB_API int | get_time_current (struct timespec *time) |
SCARAB_API time_nsec_type | time_to_nsec (struct timespec time) |
SCARAB_API double | time_to_sec (struct timespec time) |
SCARAB_API void | time_diff (struct timespec start, struct timespec end, struct timespec *diff) |
SCARAB_API size_t | get_time_absolute_str (char *ptr) |
SCARAB_API std::string | get_absolute_time_string () |
|
inline |
|
inline |