nl::Weave::Platform

Platform-provided time routines.

Summary

Functions

Divide(int64_t inDividend, int64_t inDivisor)
int64_t
Performs signed 64-bit divided by 64-bit operation and returns the quotient.
DivideBy1000(uint64_t inDividend)
uint32_t
Divide a 64-bit unsigned dividend by 1000 producing a 32-bit value.

Namespaces

nl::Weave::Platform::PersistedStorage
nl::Weave::Platform::Security

This namespace includes all interfaces within Weave for the Weave Security Monitor memory manager.

nl::Weave::Platform::Time

Functions

Divide

int64_t Divide(
  int64_t inDividend,
  int64_t inDivisor
)

Performs signed 64-bit divided by 64-bit operation and returns the quotient.

Details
Parameters
[in] inDividend
The dividend in this function.
[in] inDivisor
The divisor in this function.
Returns
The quotient of inDividend divided by inDivisor

DivideBy1000

uint32_t DivideBy1000(
  uint64_t inDividend
)

Divide a 64-bit unsigned dividend by 1000 producing a 32-bit value.

Details
Parameters
[in] inDividend
64-bit value to be divided
Returns
the 32-bit quotient.