view include/core/time.h @ 244:3a4aa9b4814c

scripts: convert to use posix shell it's not like we even need bash anyway
author Paper <paper@paper.us.eu.org>
date Mon, 22 Jan 2024 22:19:39 -0800
parents c69230dc2b5d
children 862d0d8619f6
line wrap: on
line source

#ifndef __core__time_h
#define __core__time_h

#include <cstdint>
#include <string>
namespace Time {

class Duration {
	public:
		Duration(int64_t l);
		int64_t InSeconds();
		int64_t InMinutes();
		int64_t InHours();
		int64_t InDays();
		std::string AsRelativeString();

	private:
		int64_t length;
};

int64_t GetSystemTime();

}; // namespace Time

#endif // __core__time_h