| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- from PikaObj import *
- def __init__(self): ...
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def time(self) -> float:
- """Get the current time."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def time_ns(self) -> int:
- """Get the current time in nanoseconds."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def gmtime(self, unix_time: float):
- """Convert unix time to struct_time."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def localtime(self, unix_time: float):
- """Convert unix time to struct_time."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def mktime(self) -> int:
- """Convert struct_time to unix time."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def asctime(self) -> str:
- """Convert struct_time to string."""
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def ctime(self, unix_time: float) -> str:
- """Convert unix time to string."""
- @abstractmethod
- def sleep_s(self, s: int): ...
- @abstractmethod
- def sleep_ms(self, ms: int): ...
- @abstractmethod
- @PIKA_C_MACRO_IF("PIKA_STD_DEVICE_UNIX_TIME_ENABLE")
- def platformGetTick(): ...
|