libmist backport from new metadata branch with improved typing and styling
This commit is contained in:
parent
7a03d3e96c
commit
10fa4b7e7b
88 changed files with 5957 additions and 5757 deletions
19
lib/timing.h
19
lib/timing.h
|
@ -2,18 +2,19 @@
|
|||
/// Utilities for handling time and timestamps.
|
||||
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Util {
|
||||
void wait(int ms); ///< Sleeps for the indicated amount of milliseconds or longer.
|
||||
void sleep(int ms); ///< Sleeps for roughly the indicated amount of milliseconds.
|
||||
long long int getMS(); ///< Gets the current time in milliseconds.
|
||||
long long int bootSecs(); ///< Gets the current system uptime in seconds.
|
||||
void wait(int64_t ms); ///< Sleeps for the indicated amount of milliseconds or longer.
|
||||
void sleep(int64_t ms); ///< Sleeps for roughly the indicated amount of milliseconds.
|
||||
uint64_t getMS(); ///< Gets the current time in milliseconds.
|
||||
uint64_t bootSecs(); ///< Gets the current system uptime in seconds.
|
||||
uint64_t bootMS(); ///< Gets the current system uptime in milliseconds.
|
||||
long long unsigned int getMicros();///<Gets the current time in microseconds.
|
||||
long long unsigned int getMicros(long long unsigned int previous);///<Gets the time difference in microseconds.
|
||||
long long int getNTP();
|
||||
long long int epoch(); ///< Gets the amount of seconds since 01/01/1970.
|
||||
std::string getUTCString(long long int epoch = 0);
|
||||
uint64_t getMicros();///<Gets the current time in microseconds
|
||||
uint64_t getMicros(uint64_t previous);///<Gets the time difference in microseconds.
|
||||
uint64_t getNTP();
|
||||
uint64_t epoch(); ///< Gets the amount of seconds since 01/01/1970.
|
||||
std::string getUTCString(uint64_t epoch = 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue