Newer
Older
Import / research / ui / TweakableProperties / toolkit / include / DateTime.h
@John John on 29 Dec 2020 449 bytes bulk import from macbookpro checkouts
#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