Newer
Older
invertedlogic / InvertedLogic / iLFramework / toolkit / include / DateTime.h
@John Ryland John Ryland on 10 Nov 2019 449 bytes rename
#ifndef DATETIME_H
#define DATETIME_H


#include <stdint.h>
#include <stdio.h>
#include "Utils.h"


#include "Namespace.h"
BEGIN_NAMESPACE


struct DateTime
{
	void FromString(const char* a_str);
	String ToString() const;
	uint64_t Elapsed(const DateTime& a_startTime) const;
	uint64_t ToInt() const; // Good for simple comparisons
private:
	uint64_t    m_microSecondsFromEpoch;
};


END_NAMESPACE


#endif // DATETIME_H