\hypertarget{group__Ecore__Time__Group}{\section{Ecore time functions}
\label{group__Ecore__Time__Group}\index{Ecore time functions@{Ecore time functions}}
}


These are function to retrieve time in a given format.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double \hyperlink{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}{ecore\-\_\-time\-\_\-get} (void)
\begin{DoxyCompactList}\small\item\em Retrieves the current system time as a floating point value in seconds. \end{DoxyCompactList}\item 
double \hyperlink{group__Ecore__Time__Group_ga4644b45bfca1495322913f9e529d82fc}{ecore\-\_\-time\-\_\-unix\-\_\-get} (void)
\begin{DoxyCompactList}\small\item\em Retrieves the current U\-N\-I\-X time as a floating point value in seconds. \end{DoxyCompactList}\item 
double \hyperlink{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}{ecore\-\_\-loop\-\_\-time\-\_\-get} (void)
\begin{DoxyCompactList}\small\item\em Retrieves the time at which the last loop stopped waiting for timeouts or events. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
These are function to retrieve time in a given format. Examples\-: \begin{DoxyItemize}
\item \hyperlink{ecore_time_functions_example_c}{ecore\-\_\-time -\/ Differences between time functions} \end{DoxyItemize}


\subsection{Function Documentation}
\hypertarget{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}{\index{Ecore time functions@{Ecore time functions}!ecore\-\_\-time\-\_\-get@{ecore\-\_\-time\-\_\-get}}
\index{ecore\-\_\-time\-\_\-get@{ecore\-\_\-time\-\_\-get}!Ecore time functions@{Ecore time functions}}
\subsubsection[{ecore\-\_\-time\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} double ecore\-\_\-time\-\_\-get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}


Retrieves the current system time as a floating point value in seconds. 

This uses a monotonic clock and thus never goes back in time while machine is live (even if user changes time or timezone changes, however it may be reset whenever the machine is restarted).

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}{ecore\-\_\-loop\-\_\-time\-\_\-get()}. 

\hyperlink{group__Ecore__Time__Group_ga4644b45bfca1495322913f9e529d82fc}{ecore\-\_\-time\-\_\-unix\-\_\-get()}.
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
The number of seconds. Start time is not defined (it may be when the machine was booted, unix time, etc), all it is defined is that it never goes backwards (unless you got big critical messages when the application started). 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\-: ]\par
\hyperlink{ecore_poller_example_8c-example}{ecore\-\_\-poller\-\_\-example.\-c}, \hyperlink{ecore_time_functions_example_8c-example}{ecore\-\_\-time\-\_\-functions\-\_\-example.\-c}, \hyperlink{ecore_timer_example_8c-example}{ecore\-\_\-timer\-\_\-example.\-c}, and \hyperlink{test_velocity_8c-example}{test\-\_\-velocity.\-c}.\end{Desc}


References ecore\-\_\-time\-\_\-unix\-\_\-get(), E\-I\-N\-A\-\_\-\-U\-N\-L\-I\-K\-E\-L\-Y, and evil\-\_\-time\-\_\-get().



Referenced by ecore\-\_\-con\-\_\-client\-\_\-uptime\-\_\-get(), ecore\-\_\-con\-\_\-server\-\_\-add(), ecore\-\_\-con\-\_\-server\-\_\-uptime\-\_\-get(), ecore\-\_\-evas\-\_\-buffer\-\_\-allocfunc\-\_\-new(), ecore\-\_\-main\-\_\-loop\-\_\-begin(), ecore\-\_\-main\-\_\-loop\-\_\-iterate(), ecore\-\_\-main\-\_\-loop\-\_\-iterate\-\_\-may\-\_\-block(), and ecore\-\_\-thread\-\_\-global\-\_\-data\-\_\-wait().

\hypertarget{group__Ecore__Time__Group_ga4644b45bfca1495322913f9e529d82fc}{\index{Ecore time functions@{Ecore time functions}!ecore\-\_\-time\-\_\-unix\-\_\-get@{ecore\-\_\-time\-\_\-unix\-\_\-get}}
\index{ecore\-\_\-time\-\_\-unix\-\_\-get@{ecore\-\_\-time\-\_\-unix\-\_\-get}!Ecore time functions@{Ecore time functions}}
\subsubsection[{ecore\-\_\-time\-\_\-unix\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} double ecore\-\_\-time\-\_\-unix\-\_\-get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Time__Group_ga4644b45bfca1495322913f9e529d82fc}


Retrieves the current U\-N\-I\-X time as a floating point value in seconds. 

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}{ecore\-\_\-time\-\_\-get()}. 

\hyperlink{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}{ecore\-\_\-loop\-\_\-time\-\_\-get()}.
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
The number of seconds since 12.\-00\-A\-M 1st January 1970. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\-: ]\par
\hyperlink{ecore_time_functions_example_8c-example}{ecore\-\_\-time\-\_\-functions\-\_\-example.\-c}.\end{Desc}


Referenced by ecore\-\_\-time\-\_\-get().

\hypertarget{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}{\index{Ecore time functions@{Ecore time functions}!ecore\-\_\-loop\-\_\-time\-\_\-get@{ecore\-\_\-loop\-\_\-time\-\_\-get}}
\index{ecore\-\_\-loop\-\_\-time\-\_\-get@{ecore\-\_\-loop\-\_\-time\-\_\-get}!Ecore time functions@{Ecore time functions}}
\subsubsection[{ecore\-\_\-loop\-\_\-time\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} double ecore\-\_\-loop\-\_\-time\-\_\-get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}


Retrieves the time at which the last loop stopped waiting for timeouts or events. 

This gets the time that the main loop ceased waiting for timouts and/or events to come in or for signals or any other interrupt source. This should be considered a reference point for all time based activity that should calculate its timepoint from the return of \hyperlink{group__Ecore__Time__Group_gadcbdc1aa699fbe4acd1b5427befd04d1}{ecore\-\_\-loop\-\_\-time\-\_\-get()}. Use this U\-N\-L\-E\-S\-S you absolutely must get the current actual timepoint -\/ then use \hyperlink{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}{ecore\-\_\-time\-\_\-get()}. Note that this time is meant to be used as relative to other times obtained on this run. If you need absolute time references, use \hyperlink{group__Ecore__Time__Group_ga4644b45bfca1495322913f9e529d82fc}{ecore\-\_\-time\-\_\-unix\-\_\-get()} instead.

This function can be called before any loop has ever been run, but either \hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\-\_\-init()} or \hyperlink{group__Ecore__Time__Group_ga43846b079394bb4d098abf5c16dfc544}{ecore\-\_\-time\-\_\-get()} must have been called once.

\begin{DoxyReturn}{Returns}
The number of seconds. Start time is not defined (it may be when the machine was booted, unix time, etc), all it is defined is that it never goes backwards (unless you got big critical messages when the application started). 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\-: ]\par
\hyperlink{ecore_time_functions_example_8c-example}{ecore\-\_\-time\-\_\-functions\-\_\-example.\-c}.\end{Desc}


Referenced by efreet\-\_\-mime\-\_\-type\-\_\-cache\-\_\-flush().

