OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "runtime.h" | 5 #include "runtime.h" |
6 | 6 |
7 int32 panicking = 0; | 7 int32 panicking = 0; |
8 int32 maxround = sizeof(uintptr); | 8 int32 maxround = sizeof(uintptr); |
9 int32 fd = 1; | 9 int32 fd = 1; |
10 | 10 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 [AFAKE] { nohash, noequal, noprint, nocopy }, | 454 [AFAKE] { nohash, noequal, noprint, nocopy }, |
455 }; | 455 }; |
456 | 456 |
457 #pragma textflag 7 | 457 #pragma textflag 7 |
458 void | 458 void |
459 FLUSH(void *v) | 459 FLUSH(void *v) |
460 { | 460 { |
461 USED(v); | 461 USED(v); |
462 } | 462 } |
463 | 463 |
| 464 int64 |
| 465 nanotime(void) |
| 466 { |
| 467 int64 sec; |
| 468 int32 usec; |
| 469 ········ |
| 470 sec = 0; |
| 471 usec = 0; |
| 472 gettime(&sec, &usec); |
| 473 return sec*1000000000 + (int64)usec*1000; |
| 474 } |
OLD | NEW |