[E-devel] use of ecore_time_get()

2009-02-20 Thread Vincent Torri
Hey, the doc of ecore_time_get() says that it returns the number of second (as a double) from a specific date (because of gettimeofday()). On Windows, to simulate gettimeofday(), I have to do a lot of computations, with a precision of 1E-3. I can use another option, to get a higher precision

Re: [E-devel] use of ecore_time_get()

2009-02-20 Thread Vincent Torri
On Fri, 20 Feb 2009, Gustavo Sverzut Barbieri wrote: My question is: is ecore_time_get() used for something else that measuring the time between 2 moments ? If no, I think that I can use those high resolution timers on Windows. Sometimes I use it to get real time, to print or insert in db,

Re: [E-devel] use of ecore_time_get()

2009-02-20 Thread Gustavo Sverzut Barbieri
On Fri, Feb 20, 2009 at 8:09 AM, Vincent Torri vto...@univ-evry.fr wrote: Hey, the doc of ecore_time_get() says that it returns the number of second (as a double) from a specific date (because of gettimeofday()). On Windows, to simulate gettimeofday(), I have to do a lot of computations,

Re: [E-devel] use of ecore_time_get()

2009-02-20 Thread Vincent Torri
On Fri, 20 Feb 2009, Gustavo Sverzut Barbieri wrote: On Fri, Feb 20, 2009 at 11:04 AM, Vincent Torri vto...@univ-evry.fr wrote: On Fri, 20 Feb 2009, Gustavo Sverzut Barbieri wrote: My question is: is ecore_time_get() used for something else that measuring the time between 2 moments ? If

Re: [E-devel] use of ecore_time_get()

2009-02-20 Thread Gustavo Sverzut Barbieri
On Fri, Feb 20, 2009 at 11:04 AM, Vincent Torri vto...@univ-evry.fr wrote: On Fri, 20 Feb 2009, Gustavo Sverzut Barbieri wrote: My question is: is ecore_time_get() used for something else that measuring the time between 2 moments ? If no, I think that I can use those high resolution timers

[E-devel] [PATCH] Eterm utf8 hack.

2009-02-20 Thread Kim Woelders
I refuse to surrender to SFs attachment stripping just yet... diff --git a/src/command.h b/src/command.h index 4b40713..f7d91e3 100644 --- a/src/command.h +++ b/src/command.h @@ -269,7 +269,7 @@ if (test) PrivateModes |= (bit); else PrivateModes = ~(bit);} while (0) #define CHARS_READ()

Re: [E-devel] Eterm and utf8

2009-02-20 Thread Kim Woelders
Sorry about that. - It should be possible to send patch attachments to this list. - I'm not the biggest fan of t...@$! around here. - It seems I got the patch sneaked through now. /Kim On Fri, 20 Feb 2009 04:21:04 +0100, Toma tomha...@gmail.com wrote: Patch was not included in the email.

Re: [E-devel] Eterm and utf8

2009-02-20 Thread Peter Wehrfritz
Kim Woelders schrieb: Hello, It is annoying that Eterm doesn't handle utf8. Here is a half-baked patch that might inspire somebody (Michael? :) ) to do it properly. Or maybe one gsoc student :). Beware! This patch breaks things in non-utf8 locales, probably doesn't work on big-endian

Re: [E-devel] Eterm and utf8

2009-02-20 Thread Kim Woelders
On Fri, 20 Feb 2009 20:09:30 +0100, Peter Wehrfritz peter.wehrfr...@web.de wrote: Kim Woelders schrieb: Hello, It is annoying that Eterm doesn't handle utf8. Here is a half-baked patch that might inspire somebody (Michael? :) ) to do it properly. Or maybe one gsoc student :). Beware!

Re: [E-devel] Eterm and utf8

2009-02-20 Thread Peter Wehrfritz
Kim Woelders schrieb: Yes. UCS-2 is used as internal encoding in this patch. It is what I found all in all seemed to give best results. It might be considered to use UCS-2BE internally to avoid some byte swapping, but I got in trouble with that somewhere. I have a similar patch where the