summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/wavm/Include/WAVM/Inline/Time.h
blob: 2ebf460acedd4db44c4d34d0c93cd0ff917dc652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include "WAVM/Inline/I128.h"

namespace WAVM {
	struct Time
	{
		I128 ns;

		static constexpr Time infinity() { return Time{I128::nan()}; }
		friend bool isInfinity(Time time) { return isNaN(time.ns); }
	};
}