time.hpp #2

  • //
  • guest/
  • brandon_m_bare/
  • Sprawl/
  • brandon_m_bare/
  • time/
  • time.hpp
  • View
  • Commits
  • Open Download .zip Download (584 B)
#pragma once

#include <stdint.h>

namespace sprawl
{
	namespace time
	{
		enum Resolution : int64_t
		{
			Nanoseconds = 1,
			Microseconds = 1000 * Nanoseconds,
			Milliseconds = 1000 * Microseconds,
			Seconds = 1000 * Milliseconds,
			Minutes = 60 * Seconds,
			Hours = 60 * Minutes,
			Days = 24 * Hours,
			Weeks = 7 * Days,
			Years = 365 * Days
		};

		int64_t Now(Resolution resolution = Resolution::Nanoseconds);
		int64_t SteadyNow(Resolution resolution = Resolution::Nanoseconds);

		int64_t Convert(int64_t time, Resolution fromResolution, Resolution toResolution);
	}
}
# Change User Description Committed
#2 18645 brandon_m_bare Integrated latest version of libsprawl.
#1 15089 brandon_m_bare First integration of sprawl.
//guest/ShadauxCat/Sprawl/Mainline/time/time.hpp
#2 12508 ShadauxCat -Added threading library.
Currently only functional for Linux; Windows will fail to link. (I will fix this soon.)
-Fixed missing move and copy constructors in List and ForwardList
-Fixed broken move constructor in HashMap
-Fixed missing const get() in HashMap
-Fixed broken operator-> in ListIterator
-Added sprawl::noncopyable
-Added sketch headers for filesystem library
-Made StringLiteral hashable, added special hashes for pointers and integers in murmur3
-Fixed compiler warning in async_network
-Updated memory allocators to use new threading library for mutexes
-Added accessibility to sprawl::StringLiteral to be able toa ccess its pointer and length and perform pointer comparisons

#review-12504
#1 11500 ShadauxCat Added sprawl::time library.
Fixed JSON Unit Test bug.