mistserver/lib/timing.h
2014-04-04 02:08:05 +02:00

12 lines
525 B
C++

/// \file timing.h
/// Utilities for handling time and timestamps.
#pragma once
namespace Util {
void sleep(int ms); ///< Sleeps for the indicated amount of milliseconds or longer.
long long int getMS(); ///< Gets the current time 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 epoch(); ///< Gets the amount of seconds since 01/01/1970.
}