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

checker: add alias cast type check (closes #6705) (#6709)

This commit is contained in:
Daniel Däschle
2020-11-02 01:17:35 +01:00
committed by GitHub
parent 3c0f4c46fa
commit d5a421e3f5
18 changed files with 167 additions and 143 deletions

View File

@@ -57,11 +57,11 @@ pub fn (mut t StopWatch) pause() {
pub fn (t StopWatch) elapsed() Duration {
if t.start > 0 {
if t.end == 0 {
return Duration(time.sys_mono_now() - t.start + t.elapsed)
return Duration(i64(time.sys_mono_now() - t.start + t.elapsed))
} else {
return Duration(t.end - t.start + t.elapsed)
return Duration(i64(t.end - t.start + t.elapsed))
}
}
return Duration(t.elapsed)
return Duration(i64(t.elapsed))
}