LEFT | RIGHT |
(no file at all) | |
| 1 // +build !plan9 |
| 2 |
1 /* | 3 /* |
2 Plan 9 from User Space src/lib9/time.c | 4 Plan 9 from User Space src/lib9/time.c |
3 http://code.swtch.com/plan9port/src/tip/src/lib9/time.c | 5 http://code.swtch.com/plan9port/src/tip/src/lib9/time.c |
4 | 6 |
5 Copyright 2001-2007 Russ Cox. All Rights Reserved. | 7 Copyright 2001-2007 Russ Cox. All Rights Reserved. |
6 | 8 |
7 Permission is hereby granted, free of charge, to any person obtaining a copy | 9 Permission is hereby granted, free of charge, to any person obtaining a copy |
8 of this software and associated documentation files (the "Software"), to deal | 10 of this software and associated documentation files (the "Software"), to deal |
9 in the Software without restriction, including without limitation the rights | 11 in the Software without restriction, including without limitation the rights |
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 { | 59 { |
58 long t[4]; | 60 long t[4]; |
59 double d; | 61 double d; |
60 | 62 |
61 if(p9times(t) < 0) | 63 if(p9times(t) < 0) |
62 return -1.0; | 64 return -1.0; |
63 | 65 |
64 d = (double)t[0]+(double)t[1]+(double)t[2]+(double)t[3]; | 66 d = (double)t[0]+(double)t[1]+(double)t[2]+(double)t[3]; |
65 return d/1000.0; | 67 return d/1000.0; |
66 } | 68 } |
LEFT | RIGHT |