Displaying 1 result from an estimated 1 matches for "cyg_current_time".
2004 Sep 29
1
ARM w/ assembly & fixed point crash
...printf("done\n");
printf("Retreiving frame size...");
speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size);
printf("frame size is %d bytes\n", frame_size);
printf("Encoding...\n");
for(i = 0; i < 100; i++) {
t1 = cyg_current_time();
speex_encode(enc_state, speex_frame, &bits);
t2 = cyg_current_time();
speex_frame += (frame_size / sizeof(speex_frame));
printf("Frame: %d (%lld ticks)\n", i, (t2 - t1));
}
printf("\n");
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);...