1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: add microsecond precision to Time struct

This commit is contained in:
Tomas Hellström
2020-06-07 15:19:09 +02:00
committed by GitHub
parent eec5cf1eb1
commit 9c8769503f
15 changed files with 832 additions and 17 deletions

View File

@ -103,8 +103,6 @@ pub fn new(uri string) &Client {
return ws
}
fn C.sscanf() int
fn (ws &Client) parse_uri() &Uri {
u := urllib.parse(ws.uri) or {
panic(err)
@ -572,7 +570,7 @@ fn (mut ws Client) send_control_frame(code OPCode, frame_typ string, payload []b
mut bytes_written := -1
if ws.socket.sockfd <= 0 {
l.e('No socket opened.')
unsafe {
unsafe {
payload.free()
}
l.c('send_control_frame: error sending ${frame_typ} control frame.')