---
title: USDLayer.TimeCode
framework: usdkit
role: symbol
role_heading: Structure
path: usdkit/usdlayer/timecode
---

# USDLayer.TimeCode

A time value in USD, typically used for animation keyframe times.

## Declaration

```swift
struct TimeCode
```

## Overview

Overview Wraps a Double but is treated as a distinct schema-registered value type by USD, allowing attributes to be explicitly typed as time code rather than generic floating-point.

## Topics

### Initializers

- [init(_:)](usdkit/usdlayer/timecode/init(_:).md)

### Instance Properties

- [value](usdkit/usdlayer/timecode/value.md)

### Type Properties

- [default](usdkit/usdlayer/timecode/default.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [USDPrim.Attribute.Value](usdkit/usdprim/attribute/value.md)
- [USDValueProtocol](usdkit/usdvalueprotocol.md)

## See Also

### Setting the time range

- [startTimeCode](usdkit/usdlayer/starttimecode.md)
- [endTimeCode](usdkit/usdlayer/endtimecode.md)
- [timeCodesPerSecond](usdkit/usdlayer/timecodespersecond.md)
- [USDLayer.TimeOffset](usdkit/usdlayer/timeoffset.md)
