MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
timing.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include <string>
6 
7 namespace Util {
8  void wait(int ms);
9  void sleep(int ms);
10  long long int getMS();
11  long long int bootSecs();
12  long long unsigned int getMicros();
13  long long unsigned int getMicros(long long unsigned int previous);
14  long long int getNTP();
15  long long int epoch();
16  std::string getUTCString(long long int epoch = 0);
17 }
void sleep(int ms)
Sleeps for roughly the indicated amount of milliseconds.
Definition: timing.cpp:52
long long int epoch()
Gets the amount of seconds since 01/01/1970.
Definition: timing.cpp:99
void wait(int ms)
Sleeps for the indicated amount of milliseconds or longer.
Definition: timing.cpp:32
Contains utility code, not directly related to streaming media.
Definition: bitfields.h:3
std::string getUTCString(long long int epoch=0)
Definition: timing.cpp:103
long long unsigned int getMicros()
Gets the current time in microseconds.
Definition: timing.cpp:85
long long int getNTP()
Definition: timing.cpp:65
long long int getMS()
Gets the current time in milliseconds.
Definition: timing.cpp:72
long long int bootSecs()
Gets the current system uptime in seconds.
Definition: timing.cpp:78