| <!DOCTYPE html> |
| <!-- |
| Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| <link rel="import" href="/base/iteration_helpers.html"> |
| <link rel="import" href="/base/rect.html"> |
| <script> |
| 'use strict'; |
| |
| tr.exportTo('tr.b.units', function() { |
| /** |
| * Float wrapper, representing a time stamps, capable of pretty-printing. |
| */ |
| function SizeInBytes(numBytes) { |
| this.numBytes = numBytes; |
| }; |
| |
| SizeInBytes.prototype = { |
| toString: function() { |
| return this.numBytes.toFixed(0) + ' bytes'; |
| } |
| }; |
| |
| return { |
| SizeInBytes: SizeInBytes |
| }; |
| }); |
| </script> |