Back to index

unity  6.0.0
Public Member Functions | Private Attributes
unity::util::Timer Class Reference

#include <Timer.h>

List of all members.

Public Member Functions

 Timer ()
void Reset ()
float ElapsedSeconds ()
gint64 ElapsedMicroSeconds ()

Private Attributes

gint64 start_time_

Detailed Description

Definition at line 32 of file Timer.h.


Constructor & Destructor Documentation

Definition at line 27 of file Timer.cpp.

  : start_time_(g_get_monotonic_time())
{
}

Member Function Documentation

Definition at line 42 of file Timer.cpp.

{
  gint64 end = g_get_monotonic_time();
  return end - start_time_;
}

Here is the caller graph for this function:

Definition at line 37 of file Timer.cpp.

{
  return ElapsedMicroSeconds() / 1e6;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 32 of file Timer.cpp.

{
  start_time_ = g_get_monotonic_time();
}

Member Data Documentation

Definition at line 42 of file Timer.h.


The documentation for this class was generated from the following files: