Lines Matching refs:sec
18 export function timeToString(sec: number) {
20 const sign = Math.sign(sec);
21 let n = Math.abs(sec);
36 export function formatTimestamp(sec: number) {
37 const parts = sec.toFixed(9).split('.');
44 export function timeToCode(sec: number) {
46 let ns = Math.round(sec * 1e9);
89 isInBounds(sec: number) {
90 return this.start <= sec && sec <= this.end;
93 add(sec: number): TimeSpan {
94 return new TimeSpan(this.start + sec, this.end + sec);