yum-mirror/VkFFT

git clone https://git.yummers.dev/yum-mirror/VkFFT

Tolmachev DmitriiMetal support in VkFFTba7001c

master
1.5 KiB40 linesraw
1//-------------------------------------------------------------------------------------------------------------------------------------------------------------
2//
3// Foundation/NSDate.hpp
4//
5// See LICENSE.txt for this project licensing information.
6//
7//-------------------------------------------------------------------------------------------------------------------------------------------------------------
8
9#pragma once
10
11//-------------------------------------------------------------------------------------------------------------------------------------------------------------
12
13#include "NSDefines.hpp"
14#include "NSObject.hpp"
15#include "NSPrivate.hpp"
16#include "NSTypes.hpp"
17
18//-------------------------------------------------------------------------------------------------------------------------------------------------------------
19
20namespace NS
21{
22
23using TimeInterval = double;
24
25class Date : public Copying<Date>
26{
27public:
28    static Date* dateWithTimeIntervalSinceNow(TimeInterval secs);
29};
30
31} // NS
32
33//-------------------------------------------------------------------------------------------------------------------------------------------------------------
34
35_NS_INLINE NS::Date* NS::Date::dateWithTimeIntervalSinceNow(NS::TimeInterval secs)
36{
37    return NS::Object::sendMessage<NS::Date*>(_NS_PRIVATE_CLS(NSDate), _NS_PRIVATE_SEL(dateWithTimeIntervalSinceNow_), secs);
38}
39
40//-------------------------------------------------------------------------------------------------------------------------------------------------------------