Next: , Up: Guile Utilities Reference   [Contents][Index]


6.4.1 Guile Time Utilities Reference

Guile Record: <elapsed-time>

This type represents the time elapsed on a test.


Guile Predicate: elapsed-time? object

Preconditions:

  1. None.

Effects:

  1. Check if object type is <elapsed-time>

Postconditions:

  1. The returned value is #f if object type is not <elapsed-time>.

Guile Function: elapsed-time-seconds et

Preconditions:

  1. (elapsed-time? et) is #t.

Effects:

  1. None.

Postconditions:

  1. The returned value is the number of seconds stored on et.

Guile Function: elapsed-time-nanoseconds et

Preconditions:

  1. (elapsed-time? et) is #t.

Effects:

  1. None.

Postconditions:

  1. The returned value is the number of nanoseconds stored on et.

Guile Record: <time-sample>

This type represents a time sample taken during the execution of a test case.


Guile Predicate: time-sample? object

Preconditions:

  1. None.

Effects:

  1. Check if object type is <time-sample>

Postconditions:

  1. The returned value is #f if object type is not <time-sample>.

Guile Function: stat-value-unit stat

Preconditions:

  1. (stat-value? stat) is #t.

Effects:

  1. None.

Postconditions:

  1. The returned value is the number of iterations stored on sample.

Guile Function: time-sample-elapsed-time sample

Preconditions:

  1. (time-sample? sample) is #t.

Effects:

  1. None.

Postconditions:

  1. The returned value is the elapsed time on stored on sample.
  2. The returned value has type <elapsed-time>.


Next: Guile Stats Utilities Reference, Up: Guile Utilities Reference   [Contents][Index]