fix getBufferTime return type
fix debug draw