diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-29 18:17:27 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-29 18:17:27 +0200 |
commit | 7b546bea2e374a20c52ffd71de51f91eba07256d (patch) | |
tree | e743d06f609ab755d688d5b0cef80be14ac66b67 /doc/it | |
parent | ddd829a1c707deb2ff1d4dfe2a5bd4ab09d048ba (diff) | |
download | weechat-7b546bea2e374a20c52ffd71de51f91eba07256d.zip |
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index 1d05a074e..b643527a3 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -2736,13 +2736,17 @@ Questa funzione non è disponibile nelle API per lo scripting. ==== weechat_util_timeval_diff -Restituisce la differenza (in millisecondi) tra due strutture "timeval". +// TRANSLATION MISSING +_Updated in 1.1._ + +// TRANSLATION MISSING +Return difference (in microseconds) between two "timeval" structures. Prototipo: [source,C] ---- -long weechat_util_timeval_diff (struct timeval *tv1, struct timeval *tv2); +long long weechat_util_timeval_diff (struct timeval *tv1, struct timeval *tv2); ---- Argomenti: @@ -2752,13 +2756,18 @@ Argomenti: Valore restituito: -* differenza in millisecondi +// TRANSLATION MISSING +* difference in microseconds + +// TRANSLATION MISSING +[NOTE] +With WeeChat ≤ 1.0, the returned value was in milliseconds. Esempio in C: [source,C] ---- -long diff = weechat_util_timeval_diff (&tv1, &tv2); +long long diff = weechat_util_timeval_diff (&tv1, &tv2); ---- [NOTE] @@ -2766,25 +2775,34 @@ Questa funzione non è disponibile nelle API per lo scripting. ==== weechat_util_timeval_add -Aggiungi intervallo (in millisecondi) ad una struttura timeval. +// TRANSLATION MISSING +_Updated in 1.1._ + +// TRANSLATION MISSING +Add interval (in microseconds) to a timeval structure. Prototipo: [source,C] ---- -void weechat_util_timeval_add (struct timeval *tv, long interval); +void weechat_util_timeval_add (struct timeval *tv, long long interval); ---- Argomenti: * 'tv': struttura timeval -* 'interval': intervallo (in millisecondi) +// TRANSLATION MISSING +* 'interval': interval (in microseconds) + +// TRANSLATION MISSING +[NOTE] +With WeeChat ≤ 1.0, the interval was expressed in milliseconds. Esempio in C: [source,C] ---- -weechat_util_timeval_add (&tv, 2000); /* aggiunge 2 secondi */ +weechat_util_timeval_add (&tv, 2000000); /* aggiunge 2 secondi */ ---- [NOTE] |