Module ncine.timestamp

Timestamping related functions

Functions

ncine.timestamp.now () Returns the timestamp counter value (the number of ticks until now)
ncine.timestamp.ticks_since (counter) Returns the number of ticks elapsed since the given counter value
ncine.timestamp.seconds_since (counter) Returns the number of seconds elapsed since the given counter value
ncine.timestamp.milliseconds_since (counter) Returns the number of milliseconds elapsed since the given counter value
ncine.timestamp.microseconds_since (counter) Returns the number of microseconds elapsed since the given counter value
ncine.timestamp.nanoseconds_since (counter) Returns the number of nanoseconds elapsed since the given counter value
ncine.timestamp.seconds (counter) Returns the given counter value as elapsed seconds
ncine.timestamp.milliseconds (counter) Returns the given counter value as elapsed milliseconds
ncine.timestamp.microseconds (counter) Returns the given counter value as elapsed microseconds
ncine.timestamp.nanoseconds (counter) Returns the given counter value as elapsed nanoseconds


Functions

ncine.timestamp.now ()
Returns the timestamp counter value (the number of ticks until now)

Returns:

    integer
ncine.timestamp.ticks_since (counter)
Returns the number of ticks elapsed since the given counter value

Parameters:

  • counter integer

Returns:

    integer
ncine.timestamp.seconds_since (counter)
Returns the number of seconds elapsed since the given counter value

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.milliseconds_since (counter)
Returns the number of milliseconds elapsed since the given counter value

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.microseconds_since (counter)
Returns the number of microseconds elapsed since the given counter value

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.nanoseconds_since (counter)
Returns the number of nanoseconds elapsed since the given counter value

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.seconds (counter)
Returns the given counter value as elapsed seconds

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.milliseconds (counter)
Returns the given counter value as elapsed milliseconds

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.microseconds (counter)
Returns the given counter value as elapsed microseconds

Parameters:

  • counter integer

Returns:

    number
ncine.timestamp.nanoseconds (counter)
Returns the given counter value as elapsed nanoseconds

Parameters:

  • counter integer

Returns:

    number
generated by LDoc 1.5.0 Last updated 2024-12-18 15:08:56