Displaying 12 results from an estimated 12 matches for "get_time".
Did you mean:
set_time
2007 May 20
0
Branch 'as' - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_player.c
...ext->global = swfdec_as_object_new (context);
context->rand = g_rand_new ();
+ g_get_current_time (&context->start_time);
}
/*** STRINGS ***/
@@ -359,6 +360,30 @@ swfdec_as_context_new (void)
return g_object_new (SWFDEC_TYPE_AS_CONTEXT, NULL);
}
+/**
+ * swfdec_as_context_get_time:
+ * @context: a #SwfdecAsContext
+ * @tv: a #GTimeVal to be set to the context's time
+ *
+ * This function queries the time to be used inside this context. By default,
+ * this is the same as g_get_current_time(), but it may be overwriten to allow
+ * things such as slower or faster playback....
2016 Mar 19
1
[PATCH] tests/qemu: Add program for tracing and analyzing boot times.
...double sd; /* Standard deviation. */
+ double percent; /* Percent of total elapsed time. */
+
+ double end_t; /* t + mean - 1 */
+};
+
+static size_t nr_activities;
+static struct activity *activities;
+
+static void run_test (void);
+static void get_time (struct timespec *ts);
+static int64_t timespec_diff (const struct timespec *x, const struct timespec *y);
+static struct event *add_event (struct pass_data *, uint64_t source);
+static guestfs_h *create_handle (void);
+static void set_up_event_handlers (guestfs_h *g, size_t pass);
+static void add...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...0 @@ swfdec_player_dispose (GObject *object)
}
g_array_free (player->invalidations, TRUE);
player->invalidations = NULL;
+ if (player->runtime) {
+ g_timer_destroy (player->runtime);
+ player->runtime = NULL;
+ }
}
static void
@@ -1289,6 +1300,16 @@ swfdec_player_get_time (SwfdecAsContext *context, GTimeVal *tv)
g_time_val_add (tv, SWFDEC_TICKS_TO_MSECS (SWFDEC_PLAYER (context)->time) * 1000);
}
+static gboolean
+swfdec_player_check_continue (SwfdecAsContext *context)
+{
+ SwfdecPlayer *player = SWFDEC_PLAYER (context);
+
+ if (player->max_runtime == 0...
2016 Mar 23
7
[PATCH v4 0/6] tests/qemu: Add program for tracing and analyzing boot times.
v4:
- Lots more analysis of the /init script and other parts.
- Display a list of the longest to shortest activities.
- Rebase on top of current head.
Rich.
2016 Jan 19
8
[3.8 Release] RC1 has been tagged
(cc'ing non-legacy llvm-dev this time; apologies if you get this
twice. Please don't reply-all to the first one.)
On Tue, Jan 19, 2016 at 3:47 PM, Hans Wennborg <hans at chromium.org> wrote:
> Dear testers,
>
> Start your engines; 3.8.0-rc1 was just tagged from the 3.8 branch at
> r258223. (It took a little longer than I'd planned, sorry about that.)
>
> There
2016 Mar 22
19
[PATCH v3 0/11] tests/qemu: Add program for tracing and analyzing boot times.
Lots of changes since v2, too much to remember or summarize.
Please ignore patch 11/11, it's just for my testing.
Rich.
2007 Aug 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...ns TRUE, swfdec_player_handle_mouse() will return
* TRUE. Note that unlike many event handlers in gtk, returning TRUE will not
* stop further event handlers from being invoked. Use g_signal_stop_emission()
@@ -1244,6 +1271,7 @@ swfdec_player_class_init (SwfdecPlayerCl
context_class->get_time = swfdec_player_get_time;
klass->advance = swfdec_player_do_advance;
+ klass->handle_key = swfdec_player_do_handle_key;
klass->handle_mouse = swfdec_player_do_handle_mouse;
}
@@ -1625,6 +1653,32 @@ swfdec_player_handle_mouse (SwfdecPlayer
return ret;
}
+gboolean
+swfdec_p...
2016 Mar 20
14
[PATCH v2 0/7] tests/qemu: Add program for tracing and analyzing boot times.
v1 was here:
https://www.redhat.com/archives/libguestfs/2016-March/thread.html#00157
Not running the 'hwclock' command reduces boot times considerably.
However I'm not sure if it is safe. See the question I posted on
qemu-devel:
http://thread.gmane.org/gmane.comp.emulators.qemu/402194
At the moment, about 50% of the time is consumed by SeaBIOS. Of this,
about ⅓rd is SGABIOS
2016 Jan 20
2
[3.8 Release] RC1 has been tagged
...res on my most recent build:
> Failing Tests (24):
> libc++ :: std/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp
> libc++ :: std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp
> libc++ :: std/input.output/iostream.format/ext.manip/get_time.pass.cpp
> libc++ :: std/input.output/iostream.format/ext.manip/put_time.pass.cpp
> libc++ :: std/input.output/iostreams.base/ios.base/ios.base.callback/register_callback.pass.cpp
> libc++ :: std/input.output/iostreams.base/ios.base/ios.base.locales/imbue.pass.cpp
> libc++ :...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...s that should not be collected */
void (* mark) (SwfdecAsContext * context);
- /* debugging: call this function before executing a bytecode if non-NULL */
- void (* step) (SwfdecAsContext * context);
/* overwrite if you want to report a different time than gettimeofday */
void (* get_time) (SwfdecAsContext * context,
GTimeVal * tv);
diff --git a/libswfdec/swfdec_debugger.c b/libswfdec/swfdec_debugger.c
index 9b0fd2a..89adbf6 100644
--- a/libswfdec/swfdec_debugger.c
+++ b/libswfdec/swfdec_debugger.c
@@ -386,6 +386,7 @@ swfdec_debugger_dispose (GObject *object
G_OBJE...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...G_TYPE_STRING, G_TYPE_STRING);
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL, swfdec_marshal_VOID__ENUM_STRING_STRING_BOXED,
+ G_TYPE_NONE, 4, SWFDEC_TYPE_LOADER_REQUEST, G_TYPE_STRING, G_TYPE_STRING,
+ SWFDEC_TYPE_BUFFER);
context_class->mark = swfdec_player_mark;
context_class->get_time = swfdec_player_get_time;
@@ -1613,7 +1618,8 @@ swfdec_player_load (SwfdecPlayer *player, const char *url)
}
void
-swfdec_player_launch (SwfdecPlayer *player, const char *url, const char *target)
+swfdec_player_launch (SwfdecPlayer *player, SwfdecLoaderRequest request, const char *url,
+ co...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...s that should not be collected */
void (* mark) (SwfdecAsContext * context);
- /* debugging: call this function before executing a bytecode if non-NULL */
- void (* step) (SwfdecAsContext * context);
/* overwrite if you want to report a different time than gettimeofday */
void (* get_time) (SwfdecAsContext * context,
GTimeVal * tv);
diff --git a/libswfdec/swfdec_debugger.c b/libswfdec/swfdec_debugger.c
index 9b0fd2a..89adbf6 100644
--- a/libswfdec/swfdec_debugger.c
+++ b/libswfdec/swfdec_debugger.c
@@ -386,6 +386,7 @@ swfdec_debugger_dispose (GObject *object
G_OBJE...