Revision 22795174

b/ui/spice-display.c
70 70
    QXLCommand *cmd;
71 71
    uint8_t *src, *dst;
72 72
    int by, bw, bh;
73
    struct timespec time_space;
73 74

  
74 75
    if (qemu_spice_rect_is_empty(&ssd->dirty)) {
75 76
        return NULL;
......
96 97
    drawable->surfaces_dest[0] = -1;
97 98
    drawable->surfaces_dest[1] = -1;
98 99
    drawable->surfaces_dest[2] = -1;
100
    clock_gettime(CLOCK_MONOTONIC, &time_space);
101
    /* time in milliseconds from epoch. */
102
    drawable->mm_time = time_space.tv_sec * 1000
103
                      + time_space.tv_nsec / 1000 / 1000;
99 104

  
100 105
    drawable->u.copy.rop_descriptor  = SPICE_ROPD_OP_PUT;
101 106
    drawable->u.copy.src_bitmap      = (intptr_t)image;

Also available in: Unified diff