\hypertarget{group__Ecore__Time__Group}{}\doxysection{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.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{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 \mbox{\hyperlink{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}{ecore\+\_\+time\+\_\+unix\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Retrieves the current UNIX time as a floating point value in seconds. \end{DoxyCompactList}\item 
double \mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{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}\item 
void \mbox{\hyperlink{group__Ecore__Time__Group_ga14776fc42beff432dde152d42f758892}{ecore\+\_\+loop\+\_\+time\+\_\+set}} (double t)
\begin{DoxyCompactList}\small\item\em Sets the loop time. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are function to retrieve time in a given format. 

Examples\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{ecore_time_functions_example_c}{ecore\+\_\+time -\/ Differences between time functions}} \end{DoxyItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}\label{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}} 
\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}}
\doxysubsubsection{\texorpdfstring{ecore\_time\_get()}{ecore\_time\_get()}}
{\footnotesize\ttfamily double ecore\+\_\+time\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



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{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{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}}. 

\mbox{\hyperlink{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}{ecore\+\_\+time\+\_\+unix\+\_\+get()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_poller_example_8c-example}{ecore\+\_\+poller\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_time_functions_example_8c-example}{ecore\+\_\+time\+\_\+functions\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_timer_example_8c-example}{ecore\+\_\+timer\+\_\+example.\+c}}, \mbox{\hyperlink{emotion_test_main_8c-example}{emotion\+\_\+test\+\_\+main.\+c}}, and \mbox{\hyperlink{test_velocity_8c-example}{test\+\_\+velocity.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}{ecore\+\_\+time\+\_\+unix\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\+\_\+\+UNLIKELY}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Client__Group_gaa2a166c0e95b48ab214a5d5ea52e9cce}{ecore\+\_\+con\+\_\+client\+\_\+uptime\+\_\+get()}}, \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga048038c956602aa0b6a0a4d2490ce11f}{ecore\+\_\+con\+\_\+server\+\_\+uptime\+\_\+get()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga91cb5d6868be1c3578ce21c7f786de3a}{ecore\+\_\+con\+\_\+ssl\+\_\+client\+\_\+upgrade()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga79e98a738901760ba342f9c4927986f4}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_gaa4a2d0c2641beaddb9fcc7be30f4d184}{ecore\+\_\+evas\+\_\+buffer\+\_\+allocfunc\+\_\+new()}}, \mbox{\hyperlink{group__Ecore__Time__Group_ga14776fc42beff432dde152d42f758892}{ecore\+\_\+loop\+\_\+time\+\_\+set()}}, \mbox{\hyperlink{Ecore__Sdl_8h_a02070a2ecd3d48bc86b3d9db410521ed}{ecore\+\_\+sdl\+\_\+feed\+\_\+events()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga78f34d8bd0806f68a56105662c54e202}{ecore\+\_\+thread\+\_\+global\+\_\+data\+\_\+wait()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga0b252a091ed78a33afed31cf147f58e2}{ecore\+\_\+thread\+\_\+wait()}}, and \mbox{\hyperlink{group__Emotion__API_gac2efae65442ca95289fb273693195265}{emotion\+\_\+shutdown()}}.

\mbox{\Hypertarget{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}\label{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}} 
\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}}
\doxysubsubsection{\texorpdfstring{ecore\_time\_unix\_get()}{ecore\_time\_unix\_get()}}
{\footnotesize\ttfamily double ecore\+\_\+time\+\_\+unix\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



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

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}}. 

\mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}}.
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
The number of seconds since 12.\+00\+AM 1st January 1970. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_time_functions_example_8c-example}{ecore\+\_\+time\+\_\+functions\+\_\+example.\+c}}, \mbox{\hyperlink{genlist_example_02_8c-example}{genlist\+\_\+example\+\_\+02.\+c}}, \mbox{\hyperlink{genlist_example_03_8c-example}{genlist\+\_\+example\+\_\+03.\+c}}, and \mbox{\hyperlink{genlist_example_04_8c-example}{genlist\+\_\+example\+\_\+04.\+c}}.\end{Desc}


Referenced by \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}}.

\mbox{\Hypertarget{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}\label{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}} 
\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}}
\doxysubsubsection{\texorpdfstring{ecore\_loop\_time\_get()}{ecore\_loop\_time\_get()}}
{\footnotesize\ttfamily double ecore\+\_\+loop\+\_\+time\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



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 \mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}}. Use this UNLESS you absolutely must get the current actual timepoint -\/ then use \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{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 \mbox{\hyperlink{group__Ecore__Time__Group_ga0b8030aa39eb3701b6b30816ee9c45df}{ecore\+\_\+time\+\_\+unix\+\_\+get()}} instead.

This function can be called before any loop has ever been run, but either \mbox{\hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\+\_\+init()}} or \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{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
\mbox{\hyperlink{ecore_time_functions_example_8c-example}{ecore\+\_\+time\+\_\+functions\+\_\+example.\+c}}, and \mbox{\hyperlink{efl_thread_6_8c-example}{efl\+\_\+thread\+\_\+6.\+c}}.\end{Desc}


Referenced by \mbox{\hyperlink{group__Ecore__Animator__Group_gaf05c3472d3ef2e62939ad55f70947177}{ecore\+\_\+animator\+\_\+timeline\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga93a1c660785fbb2ded46e2bd184e1c04}{ecore\+\_\+evas\+\_\+manual\+\_\+render()}}, \mbox{\hyperlink{group__Efreet__Mime_ga66160d959c2780a377a5eb2356559b48}{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush()}}, \mbox{\hyperlink{group__Elm__Box__Group_ga15194ef319ae722b03f608373f90fe1f}{elm\+\_\+box\+\_\+layout\+\_\+transition()}}, \mbox{\hyperlink{group__Elm__Transit_ga5d600d1d615b5136b99a180d256cb147}{elm\+\_\+transit\+\_\+go()}}, \mbox{\hyperlink{group__Elm__Transit_ga639567086a6116ae2022ab9d6e17967b}{elm\+\_\+transit\+\_\+paused\+\_\+set()}}, and \mbox{\hyperlink{group__Elput__Input__Group_ga8fadff0735203e097de3c2383b778e37}{elput\+\_\+input\+\_\+pointer\+\_\+xy\+\_\+set()}}.

\mbox{\Hypertarget{group__Ecore__Time__Group_ga14776fc42beff432dde152d42f758892}\label{group__Ecore__Time__Group_ga14776fc42beff432dde152d42f758892}} 
\index{Ecore time functions@{Ecore time functions}!ecore\_loop\_time\_set@{ecore\_loop\_time\_set}}
\index{ecore\_loop\_time\_set@{ecore\_loop\_time\_set}!Ecore time functions@{Ecore time functions}}
\doxysubsubsection{\texorpdfstring{ecore\_loop\_time\_set()}{ecore\_loop\_time\_set()}}
{\footnotesize\ttfamily void ecore\+\_\+loop\+\_\+time\+\_\+set (\begin{DoxyParamCaption}\item[{double}]{t }\end{DoxyParamCaption})}



Sets the loop time. 


\begin{DoxyParams}{Parameters}
{\em t} & The new loop time\\
\hline
\end{DoxyParams}
You should never need/call this, unless you are implementing a custom tick source for an ecore animator. Only then inside your function that calls \mbox{\hyperlink{group__Ecore__Animator__Group_gac49405d70dc83d6313fe6a8d15e2a50c}{ecore\+\_\+animator\+\_\+custom\+\_\+tick()}}, just before it, if you are able to get accurate timing information as to when the source of your tick woke up, use this to adjust the ecore loop time to be perfectly accurate. It is not a requirement, but makes things smoother. You should not use it otherwise as it could harm timeline handling throughout the application. Also note that the time point must match whatever zero time you get from \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}} and \mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}} (same 0 point). What this point is is undefined, sou unless your source uses the same 0 time, then you may have to adjust and do some guessing.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Animator__Group_gac49405d70dc83d6313fe6a8d15e2a50c}{ecore\+\_\+animator\+\_\+custom\+\_\+tick()}} 

\mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+11 
\end{DoxySince}


References \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}}.

