VirtualBox

Changeset 33169 in vbox


Ignore:
Timestamp:
Oct 15, 2010 10:49:09 PM (14 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: time constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r32531 r33169  
    17321732
    17331733
     1734/** @defgroup grp_rt_cdefs_time     Time Constants
     1735 * @{
     1736 */
     1737/** 1 hour expressed in nanoseconds (64-bit). */
     1738#define RT_NS_1HOUR             UINT64_C(3600000000000)
     1739/** 1 minute expressed in nanoseconds (64-bit). */
     1740#define RT_NS_1MIN              UINT64_C(60000000000)
     1741/** 1 second expressed in nanoseconds. */
     1742#define RT_NS_1SEC              UINT32_C(1000000000)
     1743/** 100 millsecond expressed in nanoseconds. */
     1744#define RT_NS_100MS             UINT32_C(100000000)
     1745/** 10 millsecond expressed in nanoseconds. */
     1746#define RT_NS_10MS              UINT32_C(10000000)
     1747/** 1 millsecond expressed in nanoseconds. */
     1748#define RT_NS_1MS               UINT32_C(1000000)
     1749/** 100 microseconds expressed in nanoseconds. */
     1750#define RT_NS_100US             UINT32_C(100000)
     1751/** 10 microseconds expressed in nanoseconds. */
     1752#define RT_NS_10US              UINT32_C(10000)
     1753/** 1 microsecond expressed in nanoseconds. */
     1754#define RT_NS_1US               UINT32_C(1000)
     1755
     1756/** 1 second expressed in nanoseconds - 64-bit type. */
     1757#define RT_NS_1SEC_64           UINT64_C(1000000000)
     1758/** 100 millsecond expressed in nanoseconds - 64-bit type. */
     1759#define RT_NS_100MS_64          UINT64_C(100000000)
     1760/** 10 millsecond expressed in nanoseconds - 64-bit type. */
     1761#define RT_NS_10MS_64           UINT64_C(10000000)
     1762/** 1 millsecond expressed in nanoseconds - 64-bit type. */
     1763#define RT_NS_1MS_64            UINT64_C(1000000)
     1764/** 100 microseconds expressed in nanoseconds - 64-bit type. */
     1765#define RT_NS_100US_64          UINT64_C(100000)
     1766/** 10 microseconds expressed in nanoseconds - 64-bit type. */
     1767#define RT_NS_10US_64           UINT64_C(10000)
     1768/** 1 microsecond expressed in nanoseconds - 64-bit type. */
     1769#define RT_NS_1US_64            UINT64_C(1000)
     1770
     1771/** 1 hour expressed in microseconds. */
     1772#define RT_US_1HOUR             UINT32_C(3600000000)
     1773/** 1 minute expressed in microseconds. */
     1774#define RT_US_1MIN              UINT32_C(60000000)
     1775/** 1 second expressed in microseconds. */
     1776#define RT_US_1SEC              UINT32_C(1000000)
     1777/** 100 millsecond expressed in microseconds. */
     1778#define RT_US_100MS             UINT32_C(100000)
     1779/** 10 millsecond expressed in microseconds. */
     1780#define RT_US_10MS              UINT32_C(10000)
     1781/** 1 millsecond expressed in microseconds. */
     1782#define RT_US_1MS               UINT32_C(1000)
     1783
     1784/** 1 hour expressed in microseconds - 64-bit type. */
     1785#define RT_US_1HOUR_64          UINT64_C(3600000000)
     1786/** 1 minute expressed in microseconds - 64-bit type. */
     1787#define RT_US_1MIN_64           UINT64_C(60000000)
     1788/** 1 second expressed in microseconds - 64-bit type. */
     1789#define RT_US_1SEC_64           UINT64_C(1000000)
     1790/** 100 millsecond expressed in microseconds - 64-bit type. */
     1791#define RT_US_100MS_64          UINT64_C(100000)
     1792/** 10 millsecond expressed in microseconds - 64-bit type. */
     1793#define RT_US_10MS_64           UINT64_C(10000)
     1794/** 1 millsecond expressed in microseconds - 64-bit type. */
     1795#define RT_US_1MS_64            UINT64_C(1000)
     1796
     1797/** 1 hour expressed in milliseconds. */
     1798#define RT_MS_1HOUR             UINT32_C(3600000)
     1799/** 1 minute expressed in milliseconds. */
     1800#define RT_MS_1MIN              UINT32_C(60000)
     1801/** 1 second expressed in milliseconds. */
     1802#define RT_MS_1SEC              UINT32_C(1000)
     1803
     1804/** 1 hour expressed in milliseconds - 64-bit type. */
     1805#define RT_MS_1HOUR_64          UINT64_C(3600000)
     1806/** 1 minute expressed in milliseconds - 64-bit type. */
     1807#define RT_MS_1MIN_64           UINT64_C(60000)
     1808/** 1 second expressed in milliseconds - 64-bit type. */
     1809#define RT_MS_1SEC_64           UINT64_C(1000)
     1810
     1811/** The number of seconds per week. */
     1812#define RT_SEC_1WEEK            UINT32_C(604800)
     1813/** The number of seconds per day. */
     1814#define RT_SEC_1DAY             UINT32_C(86400)
     1815/** The number of seconds per hour. */
     1816#define RT_SEC_1HOUR            UINT32_C(3600)
     1817
     1818/** The number of seconds per week - 64-bit type. */
     1819#define RT_SEC_1WEEK_64         UINT64_C(604800)
     1820/** The number of seconds per day - 64-bit type. */
     1821#define RT_SEC_1DAY_64          UINT64_C(86400)
     1822/** The number of seconds per hour - 64-bit type. */
     1823#define RT_SEC_1HOUR_64         UINT64_C(3600)
     1824/** @}  */
     1825
     1826
    17341827/** @defgroup grp_rt_cdefs_dbgtype  Debug Info Types
    17351828 * @{ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette